#08173D#08173D

#08173D is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.9% C 0.076 H 264.5°. Best body text is #FFFFFF at 17.50:1 contrast (WCAG AA passes).

Color values

HEX#08173D
RGBrgb(8, 23, 61)
HSLhsl(223, 77%, 14%)
HSVhsv(223, 87%, 24%)
CMYKcmyk(86.9%, 62.3%, 0%, 76.1%)
CIE-LABlab(9.00, 10.21, -26.25)
CIE-LCHlch(9.00, 28.17, 291.25°)
OKLaboklab(21.92% -0.0073 -0.0757)
OKLCHoklch(21.92% 0.076 264.5)
XYZxyz(1.2485, 1.0012, 4.5414)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08173D #3D2E08
analogous
#08313D #08173D #13083D
triadic
#08173D #3D0817 #173D08
tetradic
#08173D #3D0831 #3D2E08 #083D13
square
#08173D #3D0831 #3D2E08 #083D13
split-complementary
#08173D #3D1308 #313D08
monochromatic
#040A1B #040A1B #08173D #0F2B73 #1640A9

Accessibility & contrast

On white

17.50
#08173D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#08173D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08173D
17.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08173D#FFFFFF#000000##FFFFFF
##08173D1.0017.501.2017.50
#FFFFFF17.501.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3E
Deuteranopia (green-blind)
#00173C
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #08173d;
/* rgb */ color: rgb(8, 23, 61);
/* oklch */ color: oklch(21.9% 0.076 264.5);
Tailwind
colors: {
  custom: {
    50: '#515373',
    500: '#08173d',
    950: '#000000',
  },
}
SCSS
$custom: #08173d;
$custom-light: #515373;
$custom-dark: #000000;
JSON
{
  "hex": "#08173d",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 61
  },
  "hsl": {
    "h": 223.019,
    "s": 76.812,
    "l": 13.529
  },
  "oklch": {
    "l": 0.21919,
    "c": 0.07602,
    "h": 264.5
  },
  "luminance": 0.01001
}

Semantic roles & 50–950 ramp

primary
#08173D
secondary
#7C6325
accent
#BD34F3
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #08173D

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

Preview Lab → · Contrast checker → · Palette generator →

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