#04052C#04052C

#04052C is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.4% C 0.078 H 271.1°. Best body text is #FFFFFF at 19.75:1 contrast (WCAG AA passes).

Color values

HEX#04052C
RGBrgb(4, 5, 44)
HSLhsl(239, 83%, 9%)
HSVhsv(239, 91%, 17%)
CMYKcmyk(90.9%, 88.6%, 0%, 82.7%)
CIE-LABlab(2.86, 10.58, -23.68)
CIE-LCHlch(2.86, 25.93, 294.08°)
OKLaboklab(15.39% 0.0015 -0.0777)
OKLCHoklch(15.39% 0.078 271.1)
XYZxyz(0.5588, 0.3161, 2.4140)
Luminance0.0032 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04052C #2C2B04
analogous
#04192C #04052C #17042C
triadic
#04052C #2C0405 #052C04
tetradic
#04052C #2C0419 #2C2B04 #042C17
square
#04052C #2C0419 #2C2B04 #042C17
split-complementary
#04052C #2C1704 #192C04
monochromatic
#03031C #03031C #04052C #090B64 #0E129C

Accessibility & contrast

On white

19.75
#04052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04052C
19.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04052C#FFFFFF#000000##FFFFFF
##04052C1.0019.751.0619.75
#FFFFFF19.751.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2D
Deuteranopia (green-blind)
#00082B
Tritanopia (blue-blind)
#001017
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #04052c;
/* rgb */ color: rgb(4, 5, 44);
/* oklch */ color: oklch(15.4% 0.078 271.1);
Tailwind
colors: {
  custom: {
    50: '#494965',
    500: '#04052c',
    950: '#000000',
  },
}
SCSS
$custom: #04052c;
$custom-light: #494965;
$custom-dark: #000000;
JSON
{
  "hex": "#04052c",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 238.5,
    "s": 83.333,
    "l": 9.412
  },
  "oklch": {
    "l": 0.15387,
    "c": 0.0777,
    "h": 271.1
  },
  "luminance": 0.00316
}

Semantic roles & 50–950 ramp

primary
#04052C
secondary
#6F6D1D
accent
#F52EFA
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04052C

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

Preview Lab → · Contrast checker → · Palette generator →

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