#0B172F#0B172F

#0B172F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.9% C 0.051 H 262.8°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#0B172F
RGBrgb(11, 23, 47)
HSLhsl(220, 62%, 11%)
HSVhsv(220, 77%, 18%)
CMYKcmyk(76.6%, 51.1%, 0%, 81.6%)
CIE-LABlab(8.03, 4.40, -17.67)
CIE-LCHlch(8.03, 18.21, 283.97°)
OKLaboklab(20.86% -0.0064 -0.0504)
OKLCHoklch(20.86% 0.051 262.8)
XYZxyz(0.9573, 0.8891, 2.8099)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#0B172F #2F230B
analogous
#0B292F #0B172F #110B2F
triadic
#0B172F #2F0B17 #172F0B
tetradic
#0B172F #2F0B29 #2F230B #0B2F11
square
#0B172F #2F0B29 #2F230B #0B2F11
split-complementary
#0B172F #2F110B #292F0B
monochromatic
#060C19 #060C19 #0B172F #172F61 #224892

Accessibility & contrast

On white

17.83
#0B172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#0B172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #0B172F
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##0B172F#FFFFFF#000000##FFFFFF
##0B172F1.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#07162E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #0b172f;
/* rgb */ color: rgb(11, 23, 47);
/* oklch */ color: oklch(20.9% 0.051 262.8);
Tailwind
colors: {
  custom: {
    50: '#4e5367',
    500: '#0b172f',
    950: '#000000',
  },
}
SCSS
$custom: #0b172f;
$custom-light: #4e5367;
$custom-dark: #000000;
JSON
{
  "hex": "#0b172f",
  "rgb": {
    "r": 11,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 220,
    "s": 62.069,
    "l": 11.373
  },
  "oklch": {
    "l": 0.2086,
    "c": 0.05077,
    "h": 262.8
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#0B172F
secondary
#6B562A
accent
#AF43E5
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#020206
muted
#78787A

Preview Lab

Preview with #0B172F

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

Preview Lab → · Contrast checker → · Palette generator →

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