#04052F#04052F

#04052F is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.8% C 0.082 H 270.6°. Best body text is #FFFFFF at 19.66:1 contrast (WCAG AA passes).

Color values

HEX#04052F
RGBrgb(4, 5, 47)
HSLhsl(239, 84%, 10%)
HSVhsv(239, 91%, 18%)
CMYKcmyk(91.5%, 89.4%, 0%, 81.6%)
CIE-LABlab(3.07, 12.07, -25.60)
CIE-LCHlch(3.07, 28.31, 295.24°)
OKLaboklab(15.8% 0.0008 -0.0823)
OKLCHoklch(15.8% 0.082 270.6)
XYZxyz(0.6173, 0.3395, 2.7218)
Luminance0.0034 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04052F #2F2E04
analogous
#041A2F #04052F #19042F
triadic
#04052F #2F0405 #052F04
tetradic
#04052F #2F041A #2F2E04 #042F19
square
#04052F #2F041A #2F2E04 #042F19
split-complementary
#04052F #2F1904 #1A2F04
monochromatic
#02031C #02031C #04052F #090B67 #0E11A0

Accessibility & contrast

On white

19.66
#04052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.07
#04052F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04052F
19.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04052F#FFFFFF#000000##FFFFFF
##04052F1.0019.661.0719.66
#FFFFFF19.661.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D30
Deuteranopia (green-blind)
#00092E
Tritanopia (blue-blind)
#001119
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04052f;
/* rgb */ color: rgb(4, 5, 47);
/* oklch */ color: oklch(15.8% 0.082 270.6);
Tailwind
colors: {
  custom: {
    50: '#4a4868',
    500: '#04052f',
    950: '#000000',
  },
}
SCSS
$custom: #04052f;
$custom-light: #4a4868;
$custom-dark: #000000;
JSON
{
  "hex": "#04052f",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 238.605,
    "s": 84.314,
    "l": 10
  },
  "oklch": {
    "l": 0.15799,
    "c": 0.0823,
    "h": 270.6
  },
  "luminance": 0.0034
}

Semantic roles & 50–950 ramp

primary
#04052F
secondary
#72701D
accent
#F62DFB
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04052F

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

Preview Lab → · Contrast checker → · Palette generator →

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