#04053F#04053F

#04053F is a very dark, moderate blue. Relative luminance 0.005; OKLCH L 18.1% C 0.105 H 268.5°. Best body text is #FFFFFF at 19.12:1 contrast (WCAG AA passes).

Color values

HEX#04053F
RGBrgb(4, 5, 63)
HSLhsl(239, 88%, 13%)
HSVhsv(239, 94%, 25%)
CMYKcmyk(93.7%, 92.1%, 0%, 75.3%)
CIE-LABlab(4.45, 21.44, -35.11)
CIE-LCHlch(4.45, 41.14, 301.41°)
OKLaboklab(18.08% -0.0028 -0.1052)
OKLCHoklch(18.08% 0.105 268.5)
XYZxyz(1.0012, 0.4931, 4.7441)
Luminance0.0049 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#04053F #3F3E04
analogous
#04223F #04053F #20043F
triadic
#04053F #3F0405 #053F04
tetradic
#04053F #3F0422 #3F3E04 #043F20
square
#04053F #3F0422 #3F3E04 #043F20
split-complementary
#04053F #3F2004 #223F04
monochromatic
#02021D #02021D #04053F #080A79 #0B0EB2

Accessibility & contrast

On white

19.12
#04053F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.10
#04053F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #04053F
19.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##04053F#FFFFFF#000000##FFFFFF
##04053F1.0019.121.1019.12
#FFFFFF19.121.0021.001.00
#0000001.1021.001.0021.00
##FFFFFF19.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001241
Deuteranopia (green-blind)
#000C3E
Tritanopia (blue-blind)
#001722
Achromatopsia (no color)
#0F0F0F

Design tokens & code

CSS
--color: #04053f;
/* rgb */ color: rgb(4, 5, 63);
/* oklch */ color: oklch(18.1% 0.105 268.5);
Tailwind
colors: {
  custom: {
    50: '#514875',
    500: '#04053f',
    950: '#000000',
  },
}
SCSS
$custom: #04053f;
$custom-light: #514875;
$custom-dark: #000000;
JSON
{
  "hex": "#04053f",
  "rgb": {
    "r": 4,
    "g": 5,
    "b": 63
  },
  "hsl": {
    "h": 238.983,
    "s": 88.06,
    "l": 13.137
  },
  "oklch": {
    "l": 0.18084,
    "c": 0.10526,
    "h": 268.5
  },
  "luminance": 0.00493
}

Semantic roles & 50–950 ramp

primary
#04053F
secondary
#807F1E
accent
#FB2AFE
background
#F4F4F7
surface
#E7E6ED
border
#C3C2C8
text
#030008
muted
#78777B

Preview Lab

Preview with #04053F

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

Preview Lab → · Contrast checker → · Palette generator →

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