#08042C#08042C

#08042C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.6% C 0.078 H 278.2°. Best body text is #FFFFFF at 19.74:1 contrast (WCAG AA passes).

Color values

HEX#08042C
RGBrgb(8, 4, 44)
HSLhsl(246, 83%, 9%)
HSVhsv(246, 91%, 17%)
CMYKcmyk(81.8%, 90.9%, 0%, 82.7%)
CIE-LABlab(2.89, 12.03, -23.60)
CIE-LCHlch(2.89, 26.49, 297.00°)
OKLaboklab(15.56% 0.0112 -0.0771)
OKLCHoklch(15.56% 0.078 278.2)
XYZxyz(0.5980, 0.3203, 2.4127)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08042C #282C04
analogous
#04142C #08042C #1C042C
triadic
#08042C #2C0804 #042C08
tetradic
#08042C #2C0414 #282C04 #042C1C
square
#08042C #2C0414 #282C04 #042C1C
split-complementary
#08042C #2C1C04 #142C04
monochromatic
#05031C #05031C #08042C #120964 #1C0E9C

Accessibility & contrast

On white

19.74
#08042C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#08042C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #08042C
19.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08042C#FFFFFF#000000##FFFFFF
##08042C1.0019.741.0619.74
#FFFFFF19.741.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #08042c;
/* rgb */ color: rgb(8, 4, 44);
/* oklch */ color: oklch(15.6% 0.078 278.2);
Tailwind
colors: {
  custom: {
    50: '#4b4865',
    500: '#08042c',
    950: '#000000',
  },
}
SCSS
$custom: #08042c;
$custom-light: #4b4865;
$custom-dark: #000000;
JSON
{
  "hex": "#08042c",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 44
  },
  "hsl": {
    "h": 246,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.1556,
    "c": 0.07791,
    "h": 278.2
  },
  "luminance": 0.0032
}

Semantic roles & 50–950 ramp

primary
#08042C
secondary
#676F1D
accent
#FA2EE5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #08042C

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

Preview Lab → · Contrast checker → · Palette generator →

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