#04082A#04082A

#04082A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 15.9% C 0.069 H 269.4°. Best body text is #FFFFFF at 19.56:1 contrast (WCAG AA passes).

Color values

HEX#04082A
RGBrgb(4, 8, 42)
HSLhsl(234, 83%, 9%)
HSVhsv(234, 90%, 16%)
CMYKcmyk(90.5%, 81%, 0%, 83.5%)
CIE-LABlab(3.31, 8.45, -21.44)
CIE-LCHlch(3.31, 23.04, 291.51°)
OKLaboklab(15.93% -0.0007 -0.0691)
OKLCHoklch(15.93% 0.069 269.4)
XYZxyz(0.5547, 0.3666, 2.2316)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04082A #2A2604
analogous
#041B2A #04082A #13042A
triadic
#04082A #2A0408 #082A04
tetradic
#04082A #2A041B #2A2604 #042A13
square
#04082A #2A041B #2A2604 #042A13
split-complementary
#04082A #2A1304 #1B2A04
monochromatic
#03051C #03051C #04082A #091362 #0F1D9A

Accessibility & contrast

On white

19.56
#04082A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#04082A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04082A
19.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04082A#FFFFFF#000000##FFFFFF
##04082A1.0019.561.0719.56
#FFFFFF19.561.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2B
Deuteranopia (green-blind)
#000A29
Tritanopia (blue-blind)
#001117
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04082a;
/* rgb */ color: rgb(4, 8, 42);
/* oklch */ color: oklch(15.9% 0.069 269.4);
Tailwind
colors: {
  custom: {
    50: '#494a64',
    500: '#04082a',
    950: '#000000',
  },
}
SCSS
$custom: #04082a;
$custom-light: #494a64;
$custom-dark: #000000;
JSON
{
  "hex": "#04082a",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 42
  },
  "hsl": {
    "h": 233.684,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15933,
    "c": 0.06913,
    "h": 269.4
  },
  "luminance": 0.00367
}

Semantic roles & 50–950 ramp

primary
#04082A
secondary
#6D641D
accent
#E42FF9
background
#F4F4F5
surface
#E7E7EA
border
#C3C3C6
text
#010105
muted
#777779

Preview Lab

Preview with #04082A

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

Preview Lab → · Contrast checker → · Palette generator →

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