Skip to content

#0B1F3A Color

#0B1F3A is rgb(11, 31, 58) in RGB, hsl(214, 68%, 14%) in HSL, and about cmyk(81%, 47%, 0%, 77%) in CMYK. The closest CSS named color is MidnightBlue (#191970). White text is the more readable choice on this background.

#0B1F3A
HEX#0B1F3A
RGBrgb(11, 31, 58)
HSLhsl(214, 68%, 14%)
HSVhsv(214, 81%, 23%)
CMYKcmyk(81%, 47%, 0%, 77%)
OKLCHoklch(23.9% 0.058 256.7)
LABlab(11.37% 0.39 -20.22)
LCHlch(11.37% 20.23 271.11)

#0B1F3A Channel Values

How #0B1F3A breaks down in each color model. Hue is measured in degrees around the color wheel; saturation, lightness, and the CMYK inks are percentages.

ModelChannelsNotes
RGBR 11 · G 31 · B 588-bit channels as sent to the display
HSLH 214° · S 68% · L 14%Easiest model for building lighter and darker variants
HSVH 214° · S 81% · V 23%Matches the picker in most design tools
CMYKC 81% · M 47% · Y 0% · K 77%Approximate ink mix; confirm with an ICC profile before printing
Luminance16.52:1 vs white · 1.27:1 vs blackWCAG 2.2 relative-luminance contrast ratios

Text Contrast & Accessibility

WCAG 2.2 contrast ratios for text on a #0B1F3A background. AA requires 4.5:1 for normal text and 3:1 for large text; AAA requires 7:1. Contrast is one check, not a full accessibility review.

TextWhite text16.52:1AA normal AA large AAA normal
TextBlack text1.27:1AA normal AA large AAA normal

Need a specific ratio against another background? Open #0B1F3A in the contrast checker.

Colors That Go With #0B1F3A

Pairings derived from color-wheel relationships. The complementary color sits opposite #0B1F3A; analogous colors sit beside it; triadic and split-complementary sets spread evenly around the wheel. Select any swatch for its own breakdown.

Base
Complementary
Analogous
Analogous
Triadic
Triadic
Split comp.
Split comp.

Tints & Shades of #0B1F3A

Lighter tints and darker shades built by moving the lightness channel while holding hue and saturation, which is what you want for hover states, backgrounds, and text variants.

Tints

Shades

Want a full 50-950 ramp with semantic roles? Generate design tokens from #0B1F3A.

How #0B1F3A Looks with Color Vision Deficiency

Simulated with the Viénot, Brettel & Mollon LMS projection model. Anomalous types are rendered as partial versions of the matching dichromacy, which is an approximation rather than a per-person clinical model.

Typical#0B1F3A
Protanopia#1C1C3A
Protanomaly#171E3A
Deuteranopia#1A1A3A
Deuteranomaly#151C3A
Tritanopia#002424
Tritanomaly#04222E
Achromatopsia#1F1F1F

Test a full palette in the color blindness simulator.

Using #0B1F3A in Code

Copy-ready declarations for the places this color usually ends up.

CSS custom property--color-0b1f3a: #0B1F3A;
CSS backgroundbackground-color: #0B1F3A;
Tailwind configcolors: { 'color-0b1f3a': '#0B1F3A' }
SwiftUIColor(red: 0.043, green: 0.122, blue: 0.227)
Android XML<color name="color_0b1f3a">#0B1F3A</color>
SVG fillfill="#0B1F3A"

#0B1F3A Frequently Asked Questions

What is the RGB value of #0B1F3A?

#0B1F3A is rgb(11, 31, 58) — red 11, green 31, and blue 58 on the 0-255 scale.

What is the CMYK value of #0B1F3A?

#0B1F3A converts to approximately cmyk(81%, 47%, 0%, 77%). CMYK output is a mathematical approximation for planning; confirm production print colors with your printer and ICC profile.

Should text on #0B1F3A be black or white?

White text is the more readable choice. #0B1F3A scores 16.52:1 against white and 1.27:1 against black, and WCAG 2.2 asks for at least 4.5:1 for normal body text.

Does #0B1F3A have a color name?

#0B1F3A is not one of the 140 CSS named colors. The closest named color is MidnightBlue (#191970), at a CIE76 distance of 40.1, so the two are clearly different.

Open #0B1F3A in a Tool

#0B1F3A sits in the blue family — browse every shade of blue with hex codes, or return to the full color library.