#04053B#04053B

#04053B is a very dark, moderate blue. Relative luminance 0.004; OKLCH L 17.5% C 0.100 H 268.9°. Best body text is #FFFFFF at 19.27:1 contrast (WCAG AA passes).

Color values

HEX#04053B
RGBrgb(4, 5, 59)
HSLhsl(239, 87%, 12%)
HSVhsv(239, 93%, 23%)
CMYKcmyk(93.2%, 91.5%, 0%, 76.9%)
CIE-LABlab(4.06, 19.04, -32.86)
CIE-LCHlch(4.06, 37.97, 300.09°)
OKLaboklab(17.5% -0.0019 -0.0997)
OKLCHoklch(17.5% 0.1 268.9)
XYZxyz(0.8935, 0.4500, 4.1766)
Luminance0.0045 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04053B #3B3A04
analogous
#04213B #04053B #1F043B
triadic
#04053B #3B0405 #053B04
tetradic
#04053B #3B0421 #3B3A04 #043B1F
square
#04053B #3B0421 #3B3A04 #043B1F
split-complementary
#04053B #3B1F04 #213B04
monochromatic
#02021D #02021D #04053B #080A74 #0C0FAE

Accessibility & contrast

On white

19.27
#04053B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #04053B
19.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04053B#FFFFFF#000000##FFFFFF
##04053B1.0019.271.0919.27
#FFFFFF19.271.0021.001.00
#0000001.0921.001.0021.00
##FFFFFF19.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00113D
Deuteranopia (green-blind)
#000B3A
Tritanopia (blue-blind)
#001620
Achromatopsia (no color)
#0E0E0E

Design tokens & code

CSS
--color: #04053b;
/* rgb */ color: rgb(4, 5, 59);
/* oklch */ color: oklch(17.5% 0.100 268.9);
Tailwind
colors: {
  custom: {
    50: '#4f4872',
    500: '#04053b',
    950: '#000000',
  },
}
SCSS
$custom: #04053b;
$custom-light: #4f4872;
$custom-dark: #000000;
JSON
{
  "hex": "#04053b",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 59
  },
  "hsl": {
    "h": 238.909,
    "s": 87.302,
    "l": 12.353
  },
  "oklch": {
    "l": 0.17502,
    "c": 0.09974,
    "h": 268.9
  },
  "luminance": 0.0045
}

Semantic roles & 50–950 ramp

primary
#04053B
secondary
#7D7B1E
accent
#FA2AFD
background
#F4F4F6
surface
#E7E6EC
border
#C3C2C7
text
#020008
muted
#78777B

Preview Lab

Preview with #04053B

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

Preview Lab → · Contrast checker → · Palette generator →

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