#040222#040222

#040222 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 13.0% C 0.069 H 276.1°. Best body text is #FFFFFF at 20.25:1 contrast (WCAG AA passes).

Color values

HEX#040222
RGBrgb(4, 2, 34)
HSLhsl(244, 89%, 7%)
HSVhsv(244, 94%, 13%)
CMYKcmyk(88.2%, 94.1%, 0%, 86.7%)
CIE-LABlab(1.67, 7.57, -17.80)
CIE-LCHlch(1.67, 19.34, 293.05°)
OKLaboklab(13.01% 0.0073 -0.0686)
OKLCHoklch(13.01% 0.069 276.1)
XYZxyz(0.3604, 0.1847, 1.5297)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040222 #202202
analogous
#021022 #040222 #140222
triadic
#040222 #220402 #022204
tetradic
#040222 #220210 #202202 #022214
square
#040222 #220210 #202202 #022214
split-complementary
#040222 #221402 #102202
monochromatic
#03021D #03021D #040222 #0B055C #120996

Accessibility & contrast

On white

20.25
#040222 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040222
20.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040222#FFFFFF#000000##FFFFFF
##0402221.0020.251.0420.25
#FFFFFF20.251.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#000723
Deuteranopia (green-blind)
#000521
Tritanopia (blue-blind)
#000910
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #040222;
/* rgb */ color: rgb(4, 2, 34);
/* oklch */ color: oklch(13.0% 0.069 276.1);
Tailwind
colors: {
  custom: {
    50: '#48475d',
    500: '#040222',
    950: '#000000',
  },
}
SCSS
$custom: #040222;
$custom-light: #48475d;
$custom-dark: #000000;
JSON
{
  "hex": "#040222",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 34
  },
  "hsl": {
    "h": 243.75,
    "s": 88.889,
    "l": 7.059
  },
  "oklch": {
    "l": 0.13006,
    "c": 0.06895,
    "h": 276.1
  },
  "luminance": 0.00185
}

Semantic roles & 50–950 ramp

primary
#040222
secondary
#636818
accent
#FF29F2
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040222

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

Preview Lab → · Contrast checker → · Palette generator →

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