#0B172A#0B172A

#0B172A is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.5% C 0.042 H 259.2°. Best body text is #FFFFFF at 17.95:1 contrast (WCAG AA passes).

Color values

HEX#0B172A
RGBrgb(11, 23, 42)
HSLhsl(217, 58%, 10%)
HSVhsv(217, 74%, 16%)
CMYKcmyk(73.8%, 45.2%, 0%, 83.5%)
CIE-LABlab(7.69, 2.18, -14.52)
CIE-LCHlch(7.69, 14.68, 278.54°)
OKLaboklab(20.48% -0.0078 -0.0411)
OKLCHoklch(20.48% 0.042 259.2)
XYZxyz(0.8622, 0.8510, 2.3089)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B172A #2A1E0B
analogous
#0B262A #0B172A #0E0B2A
triadic
#0B172A #2A0B17 #172A0B
tetradic
#0B172A #2A0B26 #2A1E0B #0B2A0E
square
#0B172A #2A0B26 #2A1E0B #0B2A0E
split-complementary
#0B172A #2A0E0B #262A0B
monochromatic
#060D18 #060D18 #0B172A #18325A #244C8B

Accessibility & contrast

On white

17.95
#0B172A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#0B172A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B172A
17.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B172A#FFFFFF#000000##FFFFFF
##0B172A1.0017.951.1717.95
#FFFFFF17.951.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F182B
Deuteranopia (green-blind)
#0B162A
Tritanopia (blue-blind)
#001B1E
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #0b172a;
/* rgb */ color: rgb(11, 23, 42);
/* oklch */ color: oklch(20.5% 0.042 259.2);
Tailwind
colors: {
  custom: {
    50: '#4d5363',
    500: '#0b172a',
    950: '#000000',
  },
}
SCSS
$custom: #0b172a;
$custom-light: #4d5363;
$custom-dark: #000000;
JSON
{
  "hex": "#0b172a",
  "rgb": {
    "r": 11,
    "g": 23,
    "b": 42
  },
  "hsl": {
    "h": 216.774,
    "s": 58.491,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20477,
    "c": 0.04188,
    "h": 259.2
  },
  "luminance": 0.00851
}

Semantic roles & 50–950 ramp

primary
#0B172A
secondary
#664F2B
accent
#A546E2
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010205
muted
#777879

Preview Lab

Preview with #0B172A

Body copy rendered with the generated semantic roles for this colour.

Preview Lab → · Contrast checker → · Palette generator →

#0B172A Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva