#04082F#04082F

#04082F is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 16.6% C 0.077 H 269.1°. Best body text is #FFFFFF at 19.43:1 contrast (WCAG AA passes).

Color values

HEX#04082F
RGBrgb(4, 8, 47)
HSLhsl(234, 84%, 10%)
HSVhsv(234, 91%, 18%)
CMYKcmyk(91.5%, 83%, 0%, 81.6%)
CIE-LABlab(3.65, 10.87, -24.67)
CIE-LCHlch(3.65, 26.96, 293.77°)
OKLaboklab(16.55% -0.0012 -0.0773)
OKLCHoklch(16.55% 0.077 269.1)
XYZxyz(0.6498, 0.4046, 2.7326)
Luminance0.0040 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04082F #2F2B04
analogous
#041D2F #04082F #16042F
triadic
#04082F #2F0408 #082F04
tetradic
#04082F #2F041D #2F2B04 #042F16
square
#04082F #2F041D #2F2B04 #042F16
split-complementary
#04082F #2F1604 #1D2F04
monochromatic
#02051C #02051C #04082F #091267 #0E1BA0

Accessibility & contrast

On white

19.43
#04082F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04082F
19.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04082F#FFFFFF#000000##FFFFFF
##04082F1.0019.431.0819.43
#FFFFFF19.431.0021.001.00
#0000001.0821.001.0021.00
##FFFFFF19.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000F30
Deuteranopia (green-blind)
#000B2E
Tritanopia (blue-blind)
#00131A
Achromatopsia (no color)
#0D0D0D

Design tokens & code

CSS
--color: #04082f;
/* rgb */ color: rgb(4, 8, 47);
/* oklch */ color: oklch(16.6% 0.077 269.1);
Tailwind
colors: {
  custom: {
    50: '#4a4a68',
    500: '#04082f',
    950: '#000000',
  },
}
SCSS
$custom: #04082f;
$custom-light: #4a4a68;
$custom-dark: #000000;
JSON
{
  "hex": "#04082f",
  "rgb": {
    "r": 4,
    "g": 8,
    "b": 47
  },
  "hsl": {
    "h": 234.419,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.16551,
    "c": 0.07729,
    "h": 269.1
  },
  "luminance": 0.00405
}

Semantic roles & 50–950 ramp

primary
#04082F
secondary
#726A1D
accent
#E72DFB
background
#F4F4F6
surface
#E7E7EB
border
#C3C3C6
text
#010106
muted
#77777A

Preview Lab

Preview with #04082F

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

Preview Lab → · Contrast checker → · Palette generator →

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