#08042E#08042E

#08042E is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.081 H 277.5°. Best body text is #FFFFFF at 19.68:1 contrast (WCAG AA passes).

Color values

HEX#08042E
RGBrgb(8, 4, 46)
HSLhsl(246, 84%, 10%)
HSVhsv(246, 91%, 18%)
CMYKcmyk(82.6%, 91.3%, 0%, 82%)
CIE-LABlab(3.03, 13.00, -24.89)
CIE-LCHlch(3.03, 28.08, 297.58°)
OKLaboklab(15.83% 0.0105 -0.0802)
OKLCHoklch(15.83% 0.081 277.5)
XYZxyz(0.6365, 0.3357, 2.6155)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08042E #2A2E04
analogous
#04152E #08042E #1D042E
triadic
#08042E #2E0804 #042E08
tetradic
#08042E #2E0415 #2A2E04 #042E1D
square
#08042E #2E0415 #2A2E04 #042E1D
split-complementary
#08042E #2E1D04 #152E04
monochromatic
#05021C #05021C #08042E #120966 #1C0E9F

Accessibility & contrast

On white

19.68
#08042E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08042E
19.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08042E#FFFFFF#000000##FFFFFF
##08042E1.0019.681.0719.68
#FFFFFF19.681.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2F
Deuteranopia (green-blind)
#00092D
Tritanopia (blue-blind)
#000F18
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #08042e;
/* rgb */ color: rgb(8, 4, 46);
/* oklch */ color: oklch(15.8% 0.081 277.5);
Tailwind
colors: {
  custom: {
    50: '#4c4867',
    500: '#08042e',
    950: '#000000',
  },
}
SCSS
$custom: #08042e;
$custom-light: #4c4867;
$custom-dark: #000000;
JSON
{
  "hex": "#08042e",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 46
  },
  "hsl": {
    "h": 245.714,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.15829,
    "c": 0.08091,
    "h": 277.5
  },
  "luminance": 0.00336
}

Semantic roles & 50–950 ramp

primary
#08042E
secondary
#69711D
accent
#FA2EE7
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #08042E

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

Preview Lab → · Contrast checker → · Palette generator →

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