#050221#050221

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

Color values

HEX#050221
RGBrgb(5, 2, 33)
HSLhsl(246, 89%, 7%)
HSVhsv(246, 94%, 13%)
CMYKcmyk(84.8%, 93.9%, 0%, 87.1%)
CIE-LABlab(1.68, 7.47, -16.99)
CIE-LCHlch(1.68, 18.56, 293.74°)
OKLaboklab(13.02% 0.0106 -0.0661)
OKLCHoklch(13.02% 0.067 279.1)
XYZxyz(0.3587, 0.1855, 1.4554)
Luminance0.0019 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#050221 #1E2102
analogous
#020F21 #050221 #150221
triadic
#050221 #210502 #022105
tetradic
#050221 #21020F #1E2102 #022115
square
#050221 #21020F #1E2102 #022115
split-complementary
#050221 #211502 #0F2102
monochromatic
#04021D #04021D #050221 #0E055B #160994

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##050221#FFFFFF#000000##FFFFFF
##0502211.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)
#000722
Deuteranopia (green-blind)
#000520
Tritanopia (blue-blind)
#000910
Achromatopsia (no color)
#060606

Design tokens & code

CSS
--color: #050221;
/* rgb */ color: rgb(5, 2, 33);
/* oklch */ color: oklch(13.0% 0.067 279.1);
Tailwind
colors: {
  custom: {
    50: '#48475c',
    500: '#050221',
    950: '#000000',
  },
}
SCSS
$custom: #050221;
$custom-light: #48475c;
$custom-dark: #000000;
JSON
{
  "hex": "#050221",
  "rgb": {
    "r": 5,
    "g": 2,
    "b": 33
  },
  "hsl": {
    "h": 245.806,
    "s": 88.571,
    "l": 6.863
  },
  "oklch": {
    "l": 0.13019,
    "c": 0.06696,
    "h": 279.1
  },
  "luminance": 0.00185
}

Semantic roles & 50–950 ramp

primary
#050221
secondary
#5F6718
accent
#FF29EA
background
#F4F4F5
surface
#E6E6E9
border
#C2C2C5
text
#000004
muted
#777779

Preview Lab

Preview with #050221

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

Preview Lab → · Contrast checker → · Palette generator →

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