#08173F#08173F

#08173F is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.1% C 0.079 H 264.9°. Best body text is #FFFFFF at 17.43:1 contrast (WCAG AA passes).

Color values

HEX#08173F
RGBrgb(8, 23, 63)
HSLhsl(224, 77%, 14%)
HSVhsv(224, 87%, 25%)
CMYKcmyk(87.3%, 63.5%, 0%, 75.3%)
CIE-LABlab(9.18, 11.13, -27.38)
CIE-LCHlch(9.18, 29.56, 292.12°)
OKLaboklab(22.11% -0.0071 -0.079)
OKLCHoklch(22.11% 0.079 264.9)
XYZxyz(1.3034, 1.0232, 4.8305)
Luminance0.0102 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08173F #3F3008
analogous
#08333F #08173F #15083F
triadic
#08173F #3F0817 #173F08
tetradic
#08173F #3F0833 #3F3008 #083F15
square
#08173F #3F0833 #3F3008 #083F15
split-complementary
#08173F #3F1508 #333F08
monochromatic
#030A1B #030A1B #08173F #0F2B75 #163FAC

Accessibility & contrast

On white

17.43
#08173F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08173F
17.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08173F#FFFFFF#000000##FFFFFF
##08173F1.0017.431.2017.43
#FFFFFF17.431.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D40
Deuteranopia (green-blind)
#00173E
Tritanopia (blue-blind)
#002128
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #08173f;
/* rgb */ color: rgb(8, 23, 63);
/* oklch */ color: oklch(22.1% 0.079 264.9);
Tailwind
colors: {
  custom: {
    50: '#525374',
    500: '#08173f',
    950: '#000000',
  },
}
SCSS
$custom: #08173f;
$custom-light: #525374;
$custom-dark: #000000;
JSON
{
  "hex": "#08173f",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 63
  },
  "hsl": {
    "h": 223.636,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.22113,
    "c": 0.07931,
    "h": 264.9
  },
  "luminance": 0.01023
}

Semantic roles & 50–950 ramp

primary
#08173F
secondary
#7E6525
accent
#C034F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #08173F

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

Preview Lab → · Contrast checker → · Palette generator →

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