#040224#040224

#040224 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.3% C 0.072 H 275.2°. Best body text is #FFFFFF at 20.20:1 contrast (WCAG AA passes).

Color values

HEX#040224
RGBrgb(4, 2, 36)
HSLhsl(244, 89%, 7%)
HSVhsv(244, 94%, 14%)
CMYKcmyk(88.9%, 94.4%, 0%, 85.9%)
CIE-LABlab(1.78, 8.33, -19.20)
CIE-LCHlch(1.78, 20.93, 293.44°)
OKLaboklab(13.3% 0.0066 -0.0717)
OKLCHoklch(13.3% 0.072 275.2)
XYZxyz(0.3901, 0.1966, 1.6861)
Luminance0.0020 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040224 #222402
analogous
#021124 #040224 #150224
triadic
#040224 #240402 #022404
tetradic
#040224 #240211 #222402 #022415
square
#040224 #240211 #222402 #022415
split-complementary
#040224 #241502 #112402
monochromatic
#03021D #03021D #040224 #0A055E #110898

Accessibility & contrast

On white

20.20
#040224 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.04
#040224 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040224
20.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040224#FFFFFF#000000##FFFFFF
##0402241.0020.201.0420.20
#FFFFFF20.201.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000825
Deuteranopia (green-blind)
#000523
Tritanopia (blue-blind)
#000A11
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040224;
/* rgb */ color: rgb(4, 2, 36);
/* oklch */ color: oklch(13.3% 0.072 275.2);
Tailwind
colors: {
  custom: {
    50: '#48475e',
    500: '#040224',
    950: '#000000',
  },
}
SCSS
$custom: #040224;
$custom-light: #48475e;
$custom-dark: #000000;
JSON
{
  "hex": "#040224",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 36
  },
  "hsl": {
    "h": 243.529,
    "s": 89.474,
    "l": 7.451
  },
  "oklch": {
    "l": 0.133,
    "c": 0.072,
    "h": 275.2
  },
  "luminance": 0.00197
}

Semantic roles & 50–950 ramp

primary
#040224
secondary
#656A18
accent
#FF29F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040224

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

Preview Lab → · Contrast checker → · Palette generator →

#040224 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva