#04053A#04053A

#04053A is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.4% C 0.098 H 269.0°. Best body text is #FFFFFF at 19.30:1 contrast (WCAG AA passes).

Color values

HEX#04053A
RGBrgb(4, 5, 58)
HSLhsl(239, 87%, 12%)
HSVhsv(239, 93%, 23%)
CMYKcmyk(93.1%, 91.4%, 0%, 77.3%)
CIE-LABlab(3.97, 18.42, -32.28)
CIE-LCHlch(3.97, 37.16, 299.71°)
OKLaboklab(17.36% -0.0016 -0.0983)
OKLCHoklch(17.36% 0.098 269)
XYZxyz(0.8678, 0.4397, 4.0413)
Luminance0.0044 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04053A #3A3904
analogous
#04203A #04053A #1E043A
triadic
#04053A #3A0405 #053A04
tetradic
#04053A #3A0420 #3A3904 #043A1E
square
#04053A #3A0420 #3A3904 #043A1E
split-complementary
#04053A #3A1E04 #203A04
monochromatic
#02021D #02021D #04053A #080A73 #0C0FAD

Accessibility & contrast

On white

19.30
#04053A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.09
#04053A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04053A
19.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04053A#FFFFFF#000000##FFFFFF
##04053A1.0019.301.0919.30
#FFFFFF19.301.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113B
Deuteranopia (green-blind)
#000B39
Tritanopia (blue-blind)
#00151F
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #04053a;
/* rgb */ color: rgb(4, 5, 58);
/* oklch */ color: oklch(17.4% 0.098 269.0);
Tailwind
colors: {
  custom: {
    50: '#4e4871',
    500: '#04053a',
    950: '#000000',
  },
}
SCSS
$custom: #04053a;
$custom-light: #4e4871;
$custom-dark: #000000;
JSON
{
  "hex": "#04053a",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 58
  },
  "hsl": {
    "h": 238.889,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.17357,
    "c": 0.09833,
    "h": 269
  },
  "luminance": 0.0044
}

Semantic roles & 50–950 ramp

primary
#04053A
secondary
#7C7A1E
accent
#F92BFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04053A

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

Preview Lab → · Contrast checker → · Palette generator →

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