#08041F#08041F

#08041F is a very dark, muted blue. Relative luminance 0.002; OKLCH L 13.9% C 0.057 H 284.9°. Best body text is #FFFFFF at 20.05:1 contrast (WCAG AA passes).

Color values

HEX#08041F
RGBrgb(8, 4, 31)
HSLhsl(249, 77%, 7%)
HSVhsv(249, 87%, 12%)
CMYKcmyk(74.2%, 87.1%, 0%, 87.8%)
CIE-LABlab(2.14, 6.77, -14.68)
CIE-LCHlch(2.14, 16.16, 294.75°)
OKLaboklab(13.92% 0.0148 -0.0554)
OKLCHoklch(13.92% 0.057 284.9)
XYZxyz(0.3908, 0.2374, 1.3213)
Luminance0.0024 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08041F #1B1F04
analogous
#040E1F #08041F #16041F
triadic
#08041F #1F0804 #041F08
tetradic
#08041F #1F040E #1B1F04 #041F16
square
#08041F #1F040E #1B1F04 #041F16
split-complementary
#08041F #1F1604 #0E1F04
monochromatic
#07031B #07031B #08041F #160B55 #24128B

Accessibility & contrast

On white

20.05
#08041F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08041F
20.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08041F#FFFFFF#000000##FFFFFF
##08041F1.0020.051.0520.05
#FFFFFF20.051.0021.001.00
#0000001.0521.001.0021.00
##FFFFFF20.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000920
Deuteranopia (green-blind)
#00071E
Tritanopia (blue-blind)
#020A10
Achromatopsia (no color)
#080808

Design tokens & code

CSS
--color: #08041f;
/* rgb */ color: rgb(8, 4, 31);
/* oklch */ color: oklch(13.9% 0.057 284.9);
Tailwind
colors: {
  custom: {
    50: '#4a485a',
    500: '#08041f',
    950: '#000000',
  },
}
SCSS
$custom: #08041f;
$custom-light: #4a485a;
$custom-dark: #000000;
JSON
{
  "hex": "#08041f",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 31
  },
  "hsl": {
    "h": 248.889,
    "s": 77.143,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13918,
    "c": 0.05738,
    "h": 284.9
  },
  "luminance": 0.00237
}

Semantic roles & 50–950 ramp

primary
#08041F
secondary
#57621D
accent
#F434D7
background
#F4F4F5
surface
#E7E6E9
border
#C3C2C5
text
#010004
muted
#777779

Preview Lab

Preview with #08041F

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

Preview Lab → · Contrast checker → · Palette generator →

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