#08173C#08173C

#08173C is a very dark, moderate blue. Relative luminance 0.010; OKLCH L 21.8% C 0.074 H 264.3°. Best body text is #FFFFFF at 17.53:1 contrast (WCAG AA passes).

Color values

HEX#08173C
RGBrgb(8, 23, 60)
HSLhsl(223, 76%, 13%)
HSVhsv(223, 87%, 24%)
CMYKcmyk(86.7%, 61.7%, 0%, 76.5%)
CIE-LABlab(8.91, 9.75, -25.68)
CIE-LCHlch(8.91, 27.47, 290.79°)
OKLaboklab(21.82% -0.0074 -0.074)
OKLCHoklch(21.82% 0.074 264.3)
XYZxyz(1.2219, 0.9905, 4.4009)
Luminance0.0099 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08173C #3C2D08
analogous
#08313C #08173C #13083C
triadic
#08173C #3C0817 #173C08
tetradic
#08173C #3C0831 #3C2D08 #083C13
square
#08173C #3C0831 #3C2D08 #083C13
split-complementary
#08173C #3C1308 #313C08
monochromatic
#040A1B #040A1B #08173C #0F2C72 #1640A8

Accessibility & contrast

On white

17.53
#08173C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08173C
17.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08173C#FFFFFF#000000##FFFFFF
##08173C1.0017.531.2017.53
#FFFFFF17.531.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001C3D
Deuteranopia (green-blind)
#00173B
Tritanopia (blue-blind)
#002026
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #08173c;
/* rgb */ color: rgb(8, 23, 60);
/* oklch */ color: oklch(21.8% 0.074 264.3);
Tailwind
colors: {
  custom: {
    50: '#515372',
    500: '#08173c',
    950: '#000000',
  },
}
SCSS
$custom: #08173c;
$custom-light: #515372;
$custom-dark: #000000;
JSON
{
  "hex": "#08173c",
  "rgb": {
    "r": 8,
    "g": 23,
    "b": 60
  },
  "hsl": {
    "h": 222.692,
    "s": 76.471,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21823,
    "c": 0.07437,
    "h": 264.3
  },
  "luminance": 0.00991
}

Semantic roles & 50–950 ramp

primary
#08173C
secondary
#7B6225
accent
#BC35F3
background
#F4F4F6
surface
#E7E7EC
border
#C3C3C7
text
#020208
muted
#78787B

Preview Lab

Preview with #08173C

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

Preview Lab → · Contrast checker → · Palette generator →

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