#04052B#04052B

#04052B is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.3% C 0.076 H 271.3°. Best body text is #FFFFFF at 19.78:1 contrast (WCAG AA passes).

Color values

HEX#04052B
RGBrgb(4, 5, 43)
HSLhsl(238, 83%, 9%)
HSVhsv(238, 91%, 17%)
CMYKcmyk(90.7%, 88.4%, 0%, 83.1%)
CIE-LABlab(2.79, 10.11, -23.02)
CIE-LCHlch(2.79, 25.14, 293.71°)
OKLaboklab(15.25% 0.0017 -0.0761)
OKLCHoklch(15.25% 0.076 271.3)
XYZxyz(0.5402, 0.3087, 2.3161)
Luminance0.0031 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04052B #2B2A04
analogous
#04192B #04052B #17042B
triadic
#04052B #2B0405 #052B04
tetradic
#04052B #2B0419 #2B2A04 #042B17
square
#04052B #2B0419 #2B2A04 #042B17
split-complementary
#04052B #2B1704 #192B04
monochromatic
#03031C #03031C #04052B #090C63 #0E129B

Accessibility & contrast

On white

19.78
#04052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04052B
19.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04052B#FFFFFF#000000##FFFFFF
##04052B1.0019.781.0619.78
#FFFFFF19.781.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2C
Deuteranopia (green-blind)
#00082A
Tritanopia (blue-blind)
#000F17
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #04052b;
/* rgb */ color: rgb(4, 5, 43);
/* oklch */ color: oklch(15.3% 0.076 271.3);
Tailwind
colors: {
  custom: {
    50: '#494964',
    500: '#04052b',
    950: '#000000',
  },
}
SCSS
$custom: #04052b;
$custom-light: #494964;
$custom-dark: #000000;
JSON
{
  "hex": "#04052b",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 238.462,
    "s": 82.979,
    "l": 9.216
  },
  "oklch": {
    "l": 0.15252,
    "c": 0.07615,
    "h": 271.3
  },
  "luminance": 0.00309
}

Semantic roles & 50–950 ramp

primary
#04052B
secondary
#6E6C1D
accent
#F42EF9
background
#F4F4F6
surface
#E7E6EB
border
#C3C2C6
text
#010005
muted
#77777A

Preview Lab

Preview with #04052B

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

Preview Lab → · Contrast checker → · Palette generator →

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