#04082D#04082D

#04082D is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.3% C 0.074 H 269.2°. Best body text is #FFFFFF at 19.48:1 contrast (WCAG AA passes).

Color values

HEX#04082D
RGBrgb(4, 8, 45)
HSLhsl(234, 84%, 10%)
HSVhsv(234, 91%, 18%)
CMYKcmyk(91.1%, 82.2%, 0%, 82.4%)
CIE-LABlab(3.51, 9.86, -23.39)
CIE-LCHlch(3.51, 25.38, 292.86°)
OKLaboklab(16.3% -0.001 -0.0741)
OKLCHoklch(16.3% 0.074 269.2)
XYZxyz(0.6104, 0.3889, 2.5250)
Luminance0.0039 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04082D #2D2904
analogous
#041D2D #04082D #15042D
triadic
#04082D #2D0408 #082D04
tetradic
#04082D #2D041D #2D2904 #042D15
square
#04082D #2D041D #2D2904 #042D15
split-complementary
#04082D #2D1504 #1D2D04
monochromatic
#02051C #02051C #04082D #091265 #0E1C9D

Accessibility & contrast

On white

19.48
#04082D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04082D
19.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04082D#FFFFFF#000000##FFFFFF
##04082D1.0019.481.0819.48
#FFFFFF19.481.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F2E
Deuteranopia (green-blind)
#000B2C
Tritanopia (blue-blind)
#001219
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #04082d;
/* rgb */ color: rgb(4, 8, 45);
/* oklch */ color: oklch(16.3% 0.074 269.2);
Tailwind
colors: {
  custom: {
    50: '#4a4a66',
    500: '#04082d',
    950: '#000000',
  },
}
SCSS
$custom: #04082d;
$custom-light: #4a4a66;
$custom-dark: #000000;
JSON
{
  "hex": "#04082d",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 45
  },
  "hsl": {
    "h": 234.146,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.16301,
    "c": 0.07407,
    "h": 269.2
  },
  "luminance": 0.00389
}

Semantic roles & 50–950 ramp

primary
#04082D
secondary
#70681D
accent
#E62EFA
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04082D

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

Preview Lab → · Contrast checker → · Palette generator →

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