#08173E#08173E

#08173E is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 22.0% C 0.078 H 264.7°. Best body text is #FFFFFF at 17.47:1 contrast (WCAG AA passes).

Color values

HEX#08173E
RGBrgb(8, 23, 62)
HSLhsl(223, 77%, 14%)
HSVhsv(223, 87%, 24%)
CMYKcmyk(87.1%, 62.9%, 0%, 75.7%)
CIE-LABlab(9.09, 10.67, -26.82)
CIE-LCHlch(9.09, 28.86, 291.70°)
OKLaboklab(22.02% -0.0072 -0.0773)
OKLCHoklch(22.02% 0.078 264.7)
XYZxyz(1.2757, 1.0121, 4.6846)
Luminance0.0101 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08173E #3E2F08
analogous
#08323E #08173E #14083E
triadic
#08173E #3E0817 #173E08
tetradic
#08173E #3E0832 #3E2F08 #083E14
square
#08173E #3E0832 #3E2F08 #083E14
split-complementary
#08173E #3E1408 #323E08
monochromatic
#030A1B #030A1B #08173E #0F2B74 #163FAA

Accessibility & contrast

On white

17.47
#08173E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08173E
17.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08173E#FFFFFF#000000##FFFFFF
##08173E1.0017.471.2017.47
#FFFFFF17.471.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3F
Deuteranopia (green-blind)
#00173D
Tritanopia (blue-blind)
#002127
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #08173e;
/* rgb */ color: rgb(8, 23, 62);
/* oklch */ color: oklch(22.0% 0.078 264.7);
Tailwind
colors: {
  custom: {
    50: '#515374',
    500: '#08173e',
    950: '#000000',
  },
}
SCSS
$custom: #08173e;
$custom-light: #515374;
$custom-dark: #000000;
JSON
{
  "hex": "#08173e",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 62
  },
  "hsl": {
    "h": 223.333,
    "s": 77.143,
    "l": 13.725
  },
  "oklch": {
    "l": 0.22015,
    "c": 0.07766,
    "h": 264.7
  },
  "luminance": 0.01012
}

Semantic roles & 50–950 ramp

primary
#08173E
secondary
#7D6425
accent
#BE34F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#020208
muted
#78787B

Preview Lab

Preview with #08173E

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

Preview Lab → · Contrast checker → · Palette generator →

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