#08172E#08172E

#08172E is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.6% C 0.050 H 258.6°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#08172E
RGBrgb(8, 23, 46)
HSLhsl(216, 70%, 11%)
HSVhsv(216, 83%, 18%)
CMYKcmyk(82.6%, 50%, 0%, 82%)
CIE-LABlab(7.78, 3.25, -17.34)
CIE-LCHlch(7.78, 17.64, 280.61°)
OKLaboklab(20.59% -0.01 -0.0495)
OKLCHoklch(20.59% 0.05 258.6)
XYZxyz(0.8995, 0.8616, 2.7031)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08172E #2E1F08
analogous
#082A2E #08172E #0C082E
triadic
#08172E #2E0817 #172E08
tetradic
#08172E #2E082A #2E1F08 #082E0C
square
#08172E #2E082A #2E1F08 #082E0C
split-complementary
#08172E #2E0C08 #2A2E08
monochromatic
#050D1A #050D1A #08172E #113162 #1A4B96

Accessibility & contrast

On white

17.91
#08172E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08172E
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08172E#FFFFFF#000000##FFFFFF
##08172E1.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0C192F
Deuteranopia (green-blind)
#07152E
Tritanopia (blue-blind)
#001C20
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #08172e;
/* rgb */ color: rgb(8, 23, 46);
/* oklch */ color: oklch(20.6% 0.050 258.6);
Tailwind
colors: {
  custom: {
    50: '#4d5367',
    500: '#08172e',
    950: '#000000',
  },
}
SCSS
$custom: #08172e;
$custom-light: #4d5367;
$custom-dark: #000000;
JSON
{
  "hex": "#08172e",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 46
  },
  "hsl": {
    "h": 216.316,
    "s": 70.37,
    "l": 10.588
  },
  "oklch": {
    "l": 0.20594,
    "c": 0.05046,
    "h": 258.6
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#08172E
secondary
#6D5025
accent
#A73BED
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #08172E

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

Preview Lab → · Contrast checker → · Palette generator →

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