#08172F#08172F

#08172F is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.7% C 0.052 H 259.3°. Best body text is #FFFFFF at 17.89:1 contrast (WCAG AA passes).

Color values

HEX#08172F
RGBrgb(8, 23, 47)
HSLhsl(217, 71%, 11%)
HSVhsv(217, 83%, 18%)
CMYKcmyk(83%, 51.1%, 0%, 81.6%)
CIE-LABlab(7.86, 3.71, -17.96)
CIE-LCHlch(7.86, 18.34, 281.68°)
OKLaboklab(20.67% -0.0097 -0.0513)
OKLCHoklch(20.67% 0.052 259.3)
XYZxyz(0.9194, 0.8696, 2.8082)
Luminance0.0087 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08172F #2F2008
analogous
#082A2F #08172F #0C082F
triadic
#08172F #2F0817 #172F08
tetradic
#08172F #2F082A #2F2008 #082F0C
square
#08172F #2F082A #2F2008 #082F0C
split-complementary
#08172F #2F0C08 #2A2F08
monochromatic
#040D1A #040D1A #08172F #113163 #1A4A98

Accessibility & contrast

On white

17.89
#08172F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#08172F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08172F
17.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08172F#FFFFFF#000000##FFFFFF
##08172F1.0017.891.1717.89
#FFFFFF17.891.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C1930
Deuteranopia (green-blind)
#06162F
Tritanopia (blue-blind)
#001D20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #08172f;
/* rgb */ color: rgb(8, 23, 47);
/* oklch */ color: oklch(20.7% 0.052 259.3);
Tailwind
colors: {
  custom: {
    50: '#4d5367',
    500: '#08172f',
    950: '#000000',
  },
}
SCSS
$custom: #08172f;
$custom-light: #4d5367;
$custom-dark: #000000;
JSON
{
  "hex": "#08172f",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 47
  },
  "hsl": {
    "h": 216.923,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20674,
    "c": 0.05219,
    "h": 259.3
  },
  "luminance": 0.0087
}

Semantic roles & 50–950 ramp

primary
#08172F
secondary
#6E5225
accent
#A93AEE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #08172F

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

Preview Lab → · Contrast checker → · Palette generator →

#08172F Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva