#04052A#04052A

#04052A is a very dark, moderate blue. Relative luminance 0.003; OKLCH L 15.1% C 0.075 H 271.4°. Best body text is #FFFFFF at 19.80:1 contrast (WCAG AA passes).

Color values

HEX#04052A
RGBrgb(4, 5, 42)
HSLhsl(238, 83%, 9%)
HSVhsv(238, 90%, 16%)
CMYKcmyk(90.5%, 88.1%, 0%, 83.5%)
CIE-LABlab(2.72, 9.65, -22.36)
CIE-LCHlch(2.72, 24.35, 293.34°)
OKLaboklab(15.12% 0.0019 -0.0745)
OKLCHoklch(15.12% 0.075 271.4)
XYZxyz(0.5221, 0.3015, 2.2207)
Luminance0.0030 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04052A #2A2904
analogous
#04182A #04052A #16042A
triadic
#04052A #2A0405 #052A04
tetradic
#04052A #2A0418 #2A2904 #042A16
square
#04052A #2A0418 #2A2904 #042A16
split-complementary
#04052A #2A1604 #182A04
monochromatic
#03031C #03031C #04052A #090C62 #0F129A

Accessibility & contrast

On white

19.80
#04052A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04052A
19.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04052A#FFFFFF#000000##FFFFFF
##04052A1.0019.801.0619.80
#FFFFFF19.801.0021.001.00
#0000001.0621.001.0021.00
##FFFFFF19.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000C2B
Deuteranopia (green-blind)
#000829
Tritanopia (blue-blind)
#000F16
Achromatopsia (no color)
#0A0A0A

Design tokens & code

CSS
--color: #04052a;
/* rgb */ color: rgb(4, 5, 42);
/* oklch */ color: oklch(15.1% 0.075 271.4);
Tailwind
colors: {
  custom: {
    50: '#494964',
    500: '#04052a',
    950: '#000000',
  },
}
SCSS
$custom: #04052a;
$custom-light: #494964;
$custom-dark: #000000;
JSON
{
  "hex": "#04052a",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 42
  },
  "hsl": {
    "h": 238.421,
    "s": 82.609,
    "l": 9.02
  },
  "oklch": {
    "l": 0.15117,
    "c": 0.07457,
    "h": 271.4
  },
  "luminance": 0.00302
}

Semantic roles & 50–950 ramp

primary
#04052A
secondary
#6D6B1D
accent
#F42FF9
background
#F4F4F5
surface
#E7E6EA
border
#C3C2C6
text
#010005
muted
#777779

Preview Lab

Preview with #04052A

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

Preview Lab → · Contrast checker → · Palette generator →

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