#08173B#08173B

#08173B is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.7% C 0.073 H 264.1°. Best body text is #FFFFFF at 17.56:1 contrast (WCAG AA passes).

Color values

HEX#08173B
RGBrgb(8, 23, 59)
HSLhsl(222, 76%, 13%)
HSVhsv(222, 86%, 23%)
CMYKcmyk(86.4%, 61%, 0%, 76.9%)
CIE-LABlab(8.82, 9.28, -25.11)
CIE-LCHlch(8.82, 26.77, 290.29°)
OKLaboklab(21.73% -0.0075 -0.0723)
OKLCHoklch(21.73% 0.073 264.1)
XYZxyz(1.1957, 0.9801, 4.2630)
Luminance0.0098 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08173B #3B2C08
analogous
#08303B #08173B #12083B
triadic
#08173B #3B0817 #173B08
tetradic
#08173B #3B0830 #3B2C08 #083B12
square
#08173B #3B0830 #3B2C08 #083B12
split-complementary
#08173B #3B1208 #303B08
monochromatic
#040B1B #040B1B #08173B #0F2C71 #1741A7

Accessibility & contrast

On white

17.56
#08173B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08173B
17.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08173B#FFFFFF#000000##FFFFFF
##08173B1.0017.561.2017.56
#FFFFFF17.561.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#011C3C
Deuteranopia (green-blind)
#00173A
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #08173b;
/* rgb */ color: rgb(8, 23, 59);
/* oklch */ color: oklch(21.7% 0.073 264.1);
Tailwind
colors: {
  custom: {
    50: '#505371',
    500: '#08173b',
    950: '#000000',
  },
}
SCSS
$custom: #08173b;
$custom-light: #505371;
$custom-dark: #000000;
JSON
{
  "hex": "#08173b",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 59
  },
  "hsl": {
    "h": 222.353,
    "s": 76.119,
    "l": 13.137
  },
  "oklch": {
    "l": 0.21729,
    "c": 0.0727,
    "h": 264.1
  },
  "luminance": 0.0098
}

Semantic roles & 50–950 ramp

primary
#08173B
secondary
#7A6125
accent
#BB35F3
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #08173B

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

Preview Lab → · Contrast checker → · Palette generator →

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