#04082B#04082B

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

Color values

HEX#04082B
RGBrgb(4, 8, 43)
HSLhsl(234, 83%, 9%)
HSVhsv(234, 91%, 17%)
CMYKcmyk(90.7%, 81.4%, 0%, 83.1%)
CIE-LABlab(3.38, 8.91, -22.09)
CIE-LCHlch(3.38, 23.82, 291.96°)
OKLaboklab(16.06% -0.0008 -0.0708)
OKLCHoklch(16.06% 0.071 269.3)
XYZxyz(0.5728, 0.3738, 2.3270)
Luminance0.0037 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04082B #2B2704
analogous
#041C2B #04082B #14042B
triadic
#04082B #2B0408 #082B04
tetradic
#04082B #2B041C #2B2704 #042B14
square
#04082B #2B041C #2B2704 #042B14
split-complementary
#04082B #2B1404 #1C2B04
monochromatic
#03051C #03051C #04082B #091263 #0E1D9B

Accessibility & contrast

On white

19.54
#04082B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04082B
19.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04082B#FFFFFF#000000##FFFFFF
##04082B1.0019.541.0719.54
#FFFFFF19.541.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000E2C
Deuteranopia (green-blind)
#000A2A
Tritanopia (blue-blind)
#001118
Achromatopsia (no color)
#0C0C0C

Design tokens & code

CSS
--color: #04082b;
/* rgb */ color: rgb(4, 8, 43);
/* oklch */ color: oklch(16.1% 0.071 269.3);
Tailwind
colors: {
  custom: {
    50: '#494a64',
    500: '#04082b',
    950: '#000000',
  },
}
SCSS
$custom: #04082b;
$custom-light: #494a64;
$custom-dark: #000000;
JSON
{
  "hex": "#04082b",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 43
  },
  "hsl": {
    "h": 233.846,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.16055,
    "c": 0.07078,
    "h": 269.3
  },
  "luminance": 0.00374
}

Semantic roles & 50–950 ramp

primary
#04082B
secondary
#6E651D
accent
#E52EF9
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010105
muted
#77777A

Preview Lab

Preview with #04082B

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

Preview Lab → · Contrast checker → · Palette generator →

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