#04082C#04082C

#04082C is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.2% C 0.072 H 269.3°. Best body text is #FFFFFF at 19.51:1 contrast (WCAG AA passes).

Color values

HEX#04082C
RGBrgb(4, 8, 44)
HSLhsl(234, 83%, 9%)
HSVhsv(234, 91%, 17%)
CMYKcmyk(90.9%, 81.8%, 0%, 82.7%)
CIE-LABlab(3.44, 9.38, -22.74)
CIE-LCHlch(3.44, 24.60, 292.41°)
OKLaboklab(16.18% -0.0009 -0.0724)
OKLCHoklch(16.18% 0.072 269.3)
XYZxyz(0.5914, 0.3813, 2.4248)
Luminance0.0038 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04082C #2C2804
analogous
#041C2C #04082C #14042C
triadic
#04082C #2C0408 #082C04
tetradic
#04082C #2C041C #2C2804 #042C14
square
#04082C #2C041C #2C2804 #042C14
split-complementary
#04082C #2C1404 #1C2C04
monochromatic
#03051C #03051C #04082C #091264 #0E1C9C

Accessibility & contrast

On white

19.51
#04082C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.08
#04082C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04082C
19.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04082C#FFFFFF#000000##FFFFFF
##04082C1.0019.511.0819.51
#FFFFFF19.511.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2D
Deuteranopia (green-blind)
#000A2B
Tritanopia (blue-blind)
#001218
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04082c;
/* rgb */ color: rgb(4, 8, 44);
/* oklch */ color: oklch(16.2% 0.072 269.3);
Tailwind
colors: {
  custom: {
    50: '#494a65',
    500: '#04082c',
    950: '#000000',
  },
}
SCSS
$custom: #04082c;
$custom-light: #494a65;
$custom-dark: #000000;
JSON
{
  "hex": "#04082c",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 44
  },
  "hsl": {
    "h": 234,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.16177,
    "c": 0.07244,
    "h": 269.3
  },
  "luminance": 0.00381
}

Semantic roles & 50–950 ramp

primary
#04082C
secondary
#6F671D
accent
#E52EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04082C

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

Preview Lab → · Contrast checker → · Palette generator →

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