#08173A#08173A

#08173A is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.6% C 0.071 H 263.8°. Best body text is #FFFFFF at 17.59:1 contrast (WCAG AA passes).

Color values

HEX#08173A
RGBrgb(8, 23, 58)
HSLhsl(222, 76%, 13%)
HSVhsv(222, 86%, 23%)
CMYKcmyk(86.2%, 60.3%, 0%, 77.3%)
CIE-LABlab(8.74, 8.82, -24.54)
CIE-LCHlch(8.74, 26.07, 289.78°)
OKLaboklab(21.64% -0.0076 -0.0706)
OKLCHoklch(21.64% 0.071 263.8)
XYZxyz(1.1700, 0.9698, 4.1277)
Luminance0.0097 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08173A #3A2B08
analogous
#08303A #08173A #12083A
triadic
#08173A #3A0817 #173A08
tetradic
#08173A #3A0830 #3A2B08 #083A12
square
#08173A #3A0830 #3A2B08 #083A12
split-complementary
#08173A #3A1208 #303A08
monochromatic
#040B1B #040B1B #08173A #0F2C70 #1742A6

Accessibility & contrast

On white

17.59
#08173A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#08173A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08173A
17.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08173A#FFFFFF#000000##FFFFFF
##08173A1.0017.591.1917.59
#FFFFFF17.591.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021B3B
Deuteranopia (green-blind)
#001739
Tritanopia (blue-blind)
#001F25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #08173a;
/* rgb */ color: rgb(8, 23, 58);
/* oklch */ color: oklch(21.6% 0.071 263.8);
Tailwind
colors: {
  custom: {
    50: '#505370',
    500: '#08173a',
    950: '#000000',
  },
}
SCSS
$custom: #08173a;
$custom-light: #505370;
$custom-dark: #000000;
JSON
{
  "hex": "#08173a",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 58
  },
  "hsl": {
    "h": 222,
    "s": 75.758,
    "l": 12.941
  },
  "oklch": {
    "l": 0.21635,
    "c": 0.07103,
    "h": 263.8
  },
  "luminance": 0.0097
}

Semantic roles & 50–950 ramp

primary
#08173A
secondary
#796025
accent
#BA35F2
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020207
muted
#78787A

Preview Lab

Preview with #08173A

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

Preview Lab → · Contrast checker → · Palette generator →

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