#08172D#08172D

#08172D is a very dark, muted blue. Relative luminance 0.009; OKLCH L 20.5% C 0.049 H 257.8°. Best body text is #FFFFFF at 17.94:1 contrast (WCAG AA passes).

Color values

HEX#08172D
RGBrgb(8, 23, 45)
HSLhsl(216, 70%, 10%)
HSVhsv(216, 82%, 18%)
CMYKcmyk(82.2%, 48.9%, 0%, 82.4%)
CIE-LABlab(7.71, 2.78, -16.71)
CIE-LCHlch(7.71, 16.94, 279.45°)
OKLaboklab(20.52% -0.0103 -0.0476)
OKLCHoklch(20.52% 0.049 257.8)
XYZxyz(0.8800, 0.8538, 2.6005)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08172D #2D1E08
analogous
#08292D #08172D #0C082D
triadic
#08172D #2D0817 #172D08
tetradic
#08172D #2D0829 #2D1E08 #082D0C
square
#08172D #2D0829 #2D1E08 #082D0C
split-complementary
#08172D #2D0C08 #292D08
monochromatic
#050D1A #050D1A #08172D #113261 #1A4C95

Accessibility & contrast

On white

17.94
#08172D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08172D
17.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08172D#FFFFFF#000000##FFFFFF
##08172D1.0017.941.1717.94
#FFFFFF17.941.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0D192E
Deuteranopia (green-blind)
#08152D
Tritanopia (blue-blind)
#001C1F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #08172d;
/* rgb */ color: rgb(8, 23, 45);
/* oklch */ color: oklch(20.5% 0.049 257.8);
Tailwind
colors: {
  custom: {
    50: '#4c5366',
    500: '#08172d',
    950: '#000000',
  },
}
SCSS
$custom: #08172d;
$custom-light: #4c5366;
$custom-dark: #000000;
JSON
{
  "hex": "#08172d",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 45
  },
  "hsl": {
    "h": 215.676,
    "s": 69.811,
    "l": 10.392
  },
  "oklch": {
    "l": 0.20515,
    "c": 0.04872,
    "h": 257.8
  },
  "luminance": 0.00854
}

Semantic roles & 50–950 ramp

primary
#08172D
secondary
#6C4F25
accent
#A53BED
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #08172D

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

Preview Lab → · Contrast checker → · Palette generator →

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