#040213#040213

#040213 is a very dark, muted blue. Relative luminance 0.001; OKLCH L 11.0% C 0.044 H 285.6°. Best body text is #FFFFFF at 20.52:1 contrast (WCAG AA passes).

Color values

HEX#040213
RGBrgb(4, 2, 19)
HSLhsl(247, 81%, 4%)
HSVhsv(247, 89%, 7%)
CMYKcmyk(78.9%, 89.5%, 0%, 92.5%)
CIE-LABlab(1.05, 3.23, -7.18)
CIE-LCHlch(1.05, 7.87, 294.23°)
OKLaboklab(10.96% 0.0119 -0.0427)
OKLCHoklch(10.96% 0.044 285.6)
XYZxyz(0.1893, 0.1162, 0.6284)
Luminance0.0012 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040213 #111302
analogous
#020913 #040213 #0D0213
triadic
#040213 #130402 #021304
tetradic
#040213 #130209 #111302 #02130D
square
#040213 #130209 #111302 #02130D
split-complementary
#040213 #130D02 #091302
monochromatic
#06031C #06031C #06031C #10084A #1B0E82

Accessibility & contrast

On white

20.52
#040213 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.02
#040213 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #040213
20.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040213#FFFFFF#000000##FFFFFF
##0402131.0020.521.0220.52
#FFFFFF20.521.0021.001.00
#0000001.0221.001.0021.00
##FFFFFF20.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000414
Deuteranopia (green-blind)
#000313
Tritanopia (blue-blind)
#010508
Achromatopsia (no color)
#040404

Design tokens & code

CSS
--color: #040213;
/* rgb */ color: rgb(4, 2, 19);
/* oklch */ color: oklch(11.0% 0.044 285.6);
Tailwind
colors: {
  custom: {
    50: '#484850',
    500: '#040213',
    950: '#000000',
  },
}
SCSS
$custom: #040213;
$custom-light: #484850;
$custom-dark: #000000;
JSON
{
  "hex": "#040213",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 19
  },
  "hsl": {
    "h": 247.059,
    "s": 80.952,
    "l": 4.118
  },
  "oklch": {
    "l": 0.10959,
    "c": 0.04429,
    "h": 285.6
  },
  "luminance": 0.00116
}

Semantic roles & 50–950 ramp

primary
#040213
secondary
#515818
accent
#F730E0
background
#F4F4F4
surface
#E6E6E7
border
#C2C2C3
text
#000002
muted
#777778

Preview Lab

Preview with #040213

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

Preview Lab → · Contrast checker → · Palette generator →

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