#08042B#08042B

#08042B is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.076 H 278.6°. Best body text is #FFFFFF at 19.76:1 contrast (WCAG AA passes).

Color values

HEX#08042B
RGBrgb(8, 4, 43)
HSLhsl(246, 83%, 9%)
HSVhsv(246, 91%, 17%)
CMYKcmyk(81.4%, 90.7%, 0%, 83.1%)
CIE-LABlab(2.83, 11.56, -22.95)
CIE-LCHlch(2.83, 25.70, 296.74°)
OKLaboklab(15.43% 0.0115 -0.0755)
OKLCHoklch(15.43% 0.076 278.6)
XYZxyz(0.5795, 0.3128, 2.3149)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08042B #272B04
analogous
#04142B #08042B #1C042B
triadic
#08042B #2B0804 #042B08
tetradic
#08042B #2B0414 #272B04 #042B1C
square
#08042B #2B0414 #272B04 #042B1C
split-complementary
#08042B #2B1C04 #142B04
monochromatic
#05031C #05031C #08042B #120963 #1D0E9B

Accessibility & contrast

On white

19.76
#08042B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08042B
19.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08042B#FFFFFF#000000##FFFFFF
##08042B1.0019.761.0619.76
#FFFFFF19.761.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#00092A
Tritanopia (blue-blind)
#000E16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #08042b;
/* rgb */ color: rgb(8, 4, 43);
/* oklch */ color: oklch(15.4% 0.076 278.6);
Tailwind
colors: {
  custom: {
    50: '#4b4864',
    500: '#08042b',
    950: '#000000',
  },
}
SCSS
$custom: #08042b;
$custom-light: #4b4864;
$custom-dark: #000000;
JSON
{
  "hex": "#08042b",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 43
  },
  "hsl": {
    "h": 246.154,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15427,
    "c": 0.07641,
    "h": 278.6
  },
  "luminance": 0.00313
}

Semantic roles & 50–950 ramp

primary
#08042B
secondary
#656E1D
accent
#F92EE5
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #08042B

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

Preview Lab → · Contrast checker → · Palette generator →

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