#08153F#08153F

#08153F is a very dark, moderate blue. Relative luminance 0.009; OKLCH L 21.6% C 0.082 H 266.2°. Best body text is #FFFFFF at 17.66:1 contrast (WCAG AA passes).

Color values

HEX#08153F
RGBrgb(8, 21, 63)
HSLhsl(226, 77%, 14%)
HSVhsv(226, 87%, 25%)
CMYKcmyk(87.3%, 66.7%, 0%, 75.3%)
CIE-LABlab(8.54, 12.72, -28.43)
CIE-LCHlch(8.54, 31.15, 294.11°)
OKLaboklab(21.63% -0.0054 -0.0821)
OKLCHoklch(21.63% 0.082 266.2)
XYZxyz(1.2652, 0.9467, 4.8177)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08153F #3F3208
analogous
#08313F #08153F #17083F
triadic
#08153F #3F0815 #153F08
tetradic
#08153F #3F0831 #3F3208 #083F17
square
#08153F #3F0831 #3F3208 #083F17
split-complementary
#08153F #3F1708 #313F08
monochromatic
#03091B #03091B #08153F #0F2775 #1639AC

Accessibility & contrast

On white

17.66
#08153F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#08153F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08153F
17.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08153F#FFFFFF#000000##FFFFFF
##08153F1.0017.661.1917.66
#FFFFFF17.661.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B40
Deuteranopia (green-blind)
#00163E
Tritanopia (blue-blind)
#002027
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #08153f;
/* rgb */ color: rgb(8, 21, 63);
/* oklch */ color: oklch(21.6% 0.082 266.2);
Tailwind
colors: {
  custom: {
    50: '#525174',
    500: '#08153f',
    950: '#000000',
  },
}
SCSS
$custom: #08153f;
$custom-light: #525174;
$custom-dark: #000000;
JSON
{
  "hex": "#08153f",
  "rgb": {
    "r": 8,
    "g": 21,
    "b": 63
  },
  "hsl": {
    "h": 225.818,
    "s": 77.465,
    "l": 13.922
  },
  "oklch": {
    "l": 0.2163,
    "c": 0.08228,
    "h": 266.2
  },
  "luminance": 0.00947
}

Semantic roles & 50–950 ramp

primary
#08153F
secondary
#7E6925
accent
#C734F4
background
#F4F4F7
surface
#E7E7ED
border
#C3C3C8
text
#030208
muted
#78787B

Preview Lab

Preview with #08153F

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

Preview Lab → · Contrast checker → · Palette generator →

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