#08172C#08172C

#08172C is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.4% C 0.047 H 257.0°. Best body text is #FFFFFF at 17.96:1 contrast (WCAG AA passes).

Color values

HEX#08172C
RGBrgb(8, 23, 44)
HSLhsl(215, 69%, 10%)
HSVhsv(215, 82%, 17%)
CMYKcmyk(81.8%, 47.7%, 0%, 82.7%)
CIE-LABlab(7.64, 2.32, -16.08)
CIE-LCHlch(7.64, 16.25, 278.20°)
OKLaboklab(20.44% -0.0105 -0.0458)
OKLCHoklch(20.44% 0.047 257)
XYZxyz(0.8610, 0.8462, 2.5003)
Luminance0.0085 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08172C #2C1D08
analogous
#08292C #08172C #0B082C
triadic
#08172C #2C0817 #172C08
tetradic
#08172C #2C0829 #2C1D08 #082C0B
square
#08172C #2C0829 #2C1D08 #082C0B
split-complementary
#08172C #2C0B08 #292C08
monochromatic
#050E1A #050E1A #08172C #113260 #1B4D94

Accessibility & contrast

On white

17.96
#08172C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08172C
17.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08172C#FFFFFF#000000##FFFFFF
##08172C1.0017.961.1717.96
#FFFFFF17.961.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #08172c;
/* rgb */ color: rgb(8, 23, 44);
/* oklch */ color: oklch(20.4% 0.047 257.0);
Tailwind
colors: {
  custom: {
    50: '#4c5365',
    500: '#08172c',
    950: '#000000',
  },
}
SCSS
$custom: #08172c;
$custom-light: #4c5365;
$custom-dark: #000000;
JSON
{
  "hex": "#08172c",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 44
  },
  "hsl": {
    "h": 215,
    "s": 69.231,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20437,
    "c": 0.04699,
    "h": 257
  },
  "luminance": 0.00846
}

Semantic roles & 50–950 ramp

primary
#08172C
secondary
#6B4E25
accent
#A33CEC
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010205
muted
#77787A

Preview Lab

Preview with #08172C

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

Preview Lab → · Contrast checker → · Palette generator →

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