#08152F#08152F

#08152F is a very dark, muted blue. Relative luminance 0.008; OKLCH L 20.1% C 0.055 H 262.4°. Best body text is #FFFFFF at 18.13:1 contrast (WCAG AA passes).

Color values

HEX#08152F
RGBrgb(8, 21, 47)
HSLhsl(220, 71%, 11%)
HSVhsv(220, 83%, 18%)
CMYKcmyk(83%, 55.3%, 0%, 81.6%)
CIE-LABlab(7.16, 5.19, -19.06)
CIE-LCHlch(7.16, 19.76, 285.24°)
OKLaboklab(20.12% -0.0073 -0.0547)
OKLCHoklch(20.12% 0.055 262.4)
XYZxyz(0.8812, 0.7931, 2.7954)
Luminance0.0079 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08152F #2F2208
analogous
#08282F #08152F #0E082F
triadic
#08152F #2F0815 #152F08
tetradic
#08152F #2F0828 #2F2208 #082F0E
square
#08152F #2F0828 #2F2208 #082F0E
split-complementary
#08152F #2F0E08 #282F08
monochromatic
#040C1A #040C1A #08152F #112C63 #1A4498

Accessibility & contrast

On white

18.13
#08152F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#08152F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08152F
18.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08152F#FFFFFF#000000##FFFFFF
##08152F1.0018.131.1618.13
#FFFFFF18.131.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#081830
Deuteranopia (green-blind)
#03142E
Tritanopia (blue-blind)
#001B1F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #08152f;
/* rgb */ color: rgb(8, 21, 47);
/* oklch */ color: oklch(20.1% 0.055 262.4);
Tailwind
colors: {
  custom: {
    50: '#4d5167',
    500: '#08152f',
    950: '#000000',
  },
}
SCSS
$custom: #08152f;
$custom-light: #4d5167;
$custom-dark: #000000;
JSON
{
  "hex": "#08152f",
  "rgb": {
    "r": 8,
    "g": 21,
    "b": 47
  },
  "hsl": {
    "h": 220,
    "s": 70.909,
    "l": 10.784
  },
  "oklch": {
    "l": 0.20119,
    "c": 0.05519,
    "h": 262.4
  },
  "luminance": 0.00793
}

Semantic roles & 50–950 ramp

primary
#08152F
secondary
#6E5625
accent
#B23AEE
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010206
muted
#77787A

Preview Lab

Preview with #08152F

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

Preview Lab → · Contrast checker → · Palette generator →

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