#04052D#04052D

#04052D is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.5% C 0.079 H 270.9°. Best body text is #FFFFFF at 19.72:1 contrast (WCAG AA passes).

Color values

HEX#04052D
RGBrgb(4, 5, 45)
HSLhsl(239, 84%, 10%)
HSVhsv(239, 91%, 18%)
CMYKcmyk(91.1%, 88.9%, 0%, 82.4%)
CIE-LABlab(2.92, 11.06, -24.32)
CIE-LCHlch(2.92, 26.72, 294.46°)
OKLaboklab(15.52% 0.0013 -0.0792)
OKLCHoklch(15.52% 0.079 270.9)
XYZxyz(0.5778, 0.3238, 2.5142)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04052D #2D2C04
analogous
#041A2D #04052D #18042D
triadic
#04052D #2D0405 #052D04
tetradic
#04052D #2D041A #2D2C04 #042D18
square
#04052D #2D041A #2D2C04 #042D18
split-complementary
#04052D #2D1804 #1A2D04
monochromatic
#02031C #02031C #04052D #090B65 #0E119D

Accessibility & contrast

On white

19.72
#04052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.06
#04052D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04052D
19.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04052D#FFFFFF#000000##FFFFFF
##04052D1.0019.721.0619.72
#FFFFFF19.721.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000D2E
Deuteranopia (green-blind)
#00092C
Tritanopia (blue-blind)
#001018
Achromatopsia (no color)
#0B0B0B

Design tokens & code

CSS
--color: #04052d;
/* rgb */ color: rgb(4, 5, 45);
/* oklch */ color: oklch(15.5% 0.079 270.9);
Tailwind
colors: {
  custom: {
    50: '#494966',
    500: '#04052d',
    950: '#000000',
  },
}
SCSS
$custom: #04052d;
$custom-light: #494966;
$custom-dark: #000000;
JSON
{
  "hex": "#04052d",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 238.537,
    "s": 83.673,
    "l": 9.608
  },
  "oklch": {
    "l": 0.15524,
    "c": 0.07925,
    "h": 270.9
  },
  "luminance": 0.00324
}

Semantic roles & 50–950 ramp

primary
#04052D
secondary
#706E1D
accent
#F52EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04052D

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

Preview Lab → · Contrast checker → · Palette generator →

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