#040221#040221

#040221 is a very dark, moderate blue. Relative luminance 0.002; OKLCH L 12.9% C 0.067 H 276.5°. Best body text is #FFFFFF at 20.27:1 contrast (WCAG AA passes).

Color values

HEX#040221
RGBrgb(4, 2, 33)
HSLhsl(244, 89%, 7%)
HSVhsv(244, 94%, 13%)
CMYKcmyk(87.9%, 93.9%, 0%, 87.1%)
CIE-LABlab(1.62, 7.21, -17.09)
CIE-LCHlch(1.62, 18.55, 292.89°)
OKLaboklab(12.86% 0.0076 -0.067)
OKLCHoklch(12.86% 0.067 276.5)
XYZxyz(0.3462, 0.1790, 1.4549)
Luminance0.0018 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#040221 #1F2102
analogous
#021021 #040221 #140221
triadic
#040221 #210402 #022104
tetradic
#040221 #210210 #1F2102 #022114
square
#040221 #210210 #1F2102 #022114
split-complementary
#040221 #211402 #102102
monochromatic
#03021D #03021D #040221 #0B055B #120994

Accessibility & contrast

On white

20.27
#040221 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #040221
20.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##040221#FFFFFF#000000##FFFFFF
##0402211.0020.271.0420.27
#FFFFFF20.271.0021.001.00
#0000001.0421.001.0021.00
##FFFFFF20.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #040221;
/* rgb */ color: rgb(4, 2, 33);
/* oklch */ color: oklch(12.9% 0.067 276.5);
Tailwind
colors: {
  custom: {
    50: '#48475c',
    500: '#040221',
    950: '#000000',
  },
}
SCSS
$custom: #040221;
$custom-light: #48475c;
$custom-dark: #000000;
JSON
{
  "hex": "#040221",
  "rgb": {
    "r": 4,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 243.871,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.1286,
    "c": 0.06741,
    "h": 276.5
  },
  "luminance": 0.00179
}

Semantic roles & 50–950 ramp

primary
#040221
secondary
#626718
accent
#FF29F1
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #040221

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

Preview Lab → · Contrast checker → · Palette generator →

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