#08051F#08051F

#08051F is a very dark, muted blue. Relative luminance 0.003; OKLCH L 14.2% C 0.055 H 283.5°. Best body text is #FFFFFF at 19.97:1 contrast (WCAG AA passes).

Color values

HEX#08051F
RGBrgb(8, 5, 31)
HSLhsl(247, 72%, 7%)
HSVhsv(247, 84%, 12%)
CMYKcmyk(74.2%, 83.9%, 0%, 87.8%)
CIE-LABlab(2.34, 6.37, -14.38)
CIE-LCHlch(2.34, 15.73, 293.88°)
OKLaboklab(14.25% 0.0128 -0.0532)
OKLCHoklch(14.25% 0.055 283.5)
XYZxyz(0.4017, 0.2591, 1.3249)
Luminance0.0026 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08051F #1C1F05
analogous
#050F1F #08051F #15051F
triadic
#08051F #1F0805 #051F08
tetradic
#08051F #1F050F #1C1F05 #051F15
square
#08051F #1F050F #1C1F05 #051F15
split-complementary
#08051F #1F1505 #0F1F05
monochromatic
#07041A #07041A #08051F #160E54 #231688

Accessibility & contrast

On white

19.97
#08051F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.05
#08051F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08051F
19.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08051F#FFFFFF#000000##FFFFFF
##08051F1.0019.971.0519.97
#FFFFFF19.971.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF19.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000920
Deuteranopia (green-blind)
#00081E
Tritanopia (blue-blind)
#020B10
Achromatopsia (no color)
#090909

Design tokens & code

CSS
--color: #08051f;
/* rgb */ color: rgb(8, 5, 31);
/* oklch */ color: oklch(14.2% 0.055 283.5);
Tailwind
colors: {
  custom: {
    50: '#4a495a',
    500: '#08051f',
    950: '#000000',
  },
}
SCSS
$custom: #08051f;
$custom-light: #4a495a;
$custom-dark: #000000;
JSON
{
  "hex": "#08051f",
  "rgb": {
    "r": 8,
    "g": 5,
    "b": 31
  },
  "hsl": {
    "h": 246.923,
    "s": 72.222,
    "l": 7.059
  },
  "oklch": {
    "l": 0.14249,
    "c": 0.05476,
    "h": 283.5
  },
  "luminance": 0.00259
}

Semantic roles & 50–950 ramp

primary
#08051F
secondary
#596020
accent
#EF39DA
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #08051F

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

Preview Lab → · Contrast checker → · Palette generator →

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