#04052E#04052E

#04052E is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.7% C 0.081 H 270.7°. Best body text is #FFFFFF at 19.69:1 contrast (WCAG AA passes).

Color values

HEX#04052E
RGBrgb(4, 5, 46)
HSLhsl(239, 84%, 10%)
HSVhsv(239, 91%, 18%)
CMYKcmyk(91.3%, 89.1%, 0%, 82%)
CIE-LABlab(2.99, 11.56, -24.97)
CIE-LCHlch(2.99, 27.51, 294.85°)
OKLaboklab(15.66% 0.001 -0.0808)
OKLCHoklch(15.66% 0.081 270.7)
XYZxyz(0.5973, 0.3315, 2.6168)
Luminance0.0033 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04052E #2E2D04
analogous
#041A2E #04052E #18042E
triadic
#04052E #2E0405 #052E04
tetradic
#04052E #2E041A #2E2D04 #042E18
square
#04052E #2E041A #2E2D04 #042E18
split-complementary
#04052E #2E1804 #1A2E04
monochromatic
#02031C #02031C #04052E #090B66 #0E119F

Accessibility & contrast

On white

19.69
#04052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04052E
19.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04052E#FFFFFF#000000##FFFFFF
##04052E1.0019.691.0719.69
#FFFFFF19.691.0021.001.00
#0000001.0721.001.0021.00
##FFFFFF19.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #04052e;
/* rgb */ color: rgb(4, 5, 46);
/* oklch */ color: oklch(15.7% 0.081 270.7);
Tailwind
colors: {
  custom: {
    50: '#4a4967',
    500: '#04052e',
    950: '#000000',
  },
}
SCSS
$custom: #04052e;
$custom-light: #4a4967;
$custom-dark: #000000;
JSON
{
  "hex": "#04052e",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 238.571,
    "s": 84,
    "l": 9.804
  },
  "oklch": {
    "l": 0.15661,
    "c": 0.08079,
    "h": 270.7
  },
  "luminance": 0.00332
}

Semantic roles & 50–950 ramp

primary
#04052E
secondary
#716F1D
accent
#F52EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010006
muted
#77777A

Preview Lab

Preview with #04052E

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

Preview Lab → · Contrast checker → · Palette generator →

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