#08042D#08042D

#08042D is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.7% C 0.079 H 277.8°. Best body text is #FFFFFF at 19.71:1 contrast (WCAG AA passes).

Color values

HEX#08042D
RGBrgb(8, 4, 45)
HSLhsl(246, 84%, 10%)
HSVhsv(246, 91%, 18%)
CMYKcmyk(82.2%, 91.1%, 0%, 82.4%)
CIE-LABlab(2.96, 12.51, -24.25)
CIE-LCHlch(2.96, 27.29, 297.29°)
OKLaboklab(15.69% 0.0108 -0.0787)
OKLCHoklch(15.69% 0.079 277.8)
XYZxyz(0.6171, 0.3279, 2.5129)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08042D #292D04
analogous
#04152D #08042D #1D042D
triadic
#08042D #2D0804 #042D08
tetradic
#08042D #2D0415 #292D04 #042D1D
square
#08042D #2D0415 #292D04 #042D1D
split-complementary
#08042D #2D1D04 #152D04
monochromatic
#05021C #05021C #08042D #120965 #1C0E9D

Accessibility & contrast

On white

19.71
#08042D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#08042D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08042D
19.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08042D#FFFFFF#000000##FFFFFF
##08042D1.0019.711.0719.71
#FFFFFF19.711.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2E
Deuteranopia (green-blind)
#00092C
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #08042d;
/* rgb */ color: rgb(8, 4, 45);
/* oklch */ color: oklch(15.7% 0.079 277.8);
Tailwind
colors: {
  custom: {
    50: '#4b4866',
    500: '#08042d',
    950: '#000000',
  },
}
SCSS
$custom: #08042d;
$custom-light: #4b4866;
$custom-dark: #000000;
JSON
{
  "hex": "#08042d",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 45
  },
  "hsl": {
    "h": 245.854,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15694,
    "c": 0.07941,
    "h": 277.8
  },
  "luminance": 0.00328
}

Semantic roles & 50–950 ramp

primary
#08042D
secondary
#68701D
accent
#FA2EE6
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #08042D

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

Preview Lab → · Contrast checker → · Palette generator →

#08042D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva