#08042A#08042A

#08042A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.3% C 0.075 H 279.1°. Best body text is #FFFFFF at 19.79:1 contrast (WCAG AA passes).

Color values

HEX#08042A
RGBrgb(8, 4, 42)
HSLhsl(246, 83%, 9%)
HSVhsv(246, 90%, 16%)
CMYKcmyk(81%, 90.5%, 0%, 83.5%)
CIE-LABlab(2.76, 11.09, -22.29)
CIE-LCHlch(2.76, 24.90, 296.46°)
OKLaboklab(15.3% 0.0118 -0.0739)
OKLCHoklch(15.3% 0.075 279.1)
XYZxyz(0.5613, 0.3056, 2.2194)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#08042A #262A04
analogous
#04132A #08042A #1B042A
triadic
#08042A #2A0804 #042A08
tetradic
#08042A #2A0413 #262A04 #042A1B
square
#08042A #2A0413 #262A04 #042A1B
split-complementary
#08042A #2A1B04 #132A04
monochromatic
#05031C #05031C #08042A #130962 #1D0F9A

Accessibility & contrast

On white

19.79
#08042A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #08042A
19.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##08042A#FFFFFF#000000##FFFFFF
##08042A1.0019.791.0619.79
#FFFFFF19.791.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2B
Deuteranopia (green-blind)
#000929
Tritanopia (blue-blind)
#000E16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #08042a;
/* rgb */ color: rgb(8, 4, 42);
/* oklch */ color: oklch(15.3% 0.075 279.1);
Tailwind
colors: {
  custom: {
    50: '#4b4864',
    500: '#08042a',
    950: '#000000',
  },
}
SCSS
$custom: #08042a;
$custom-light: #4b4864;
$custom-dark: #000000;
JSON
{
  "hex": "#08042a",
  "rgb": {
    "r": 8,
    "g": 4,
    "b": 42
  },
  "hsl": {
    "h": 246.316,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15295,
    "c": 0.07489,
    "h": 279.1
  },
  "luminance": 0.00306
}

Semantic roles & 50–950 ramp

primary
#08042A
secondary
#646D1D
accent
#F92FE4
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #08042A

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

Preview Lab → · Contrast checker → · Palette generator →

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