#221571#221571

#221571 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.0% C 0.147 H 278.4°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#221571
RGBrgb(34, 21, 113)
HSLhsl(248, 69%, 26%)
HSVhsv(248, 81%, 44%)
CMYKcmyk(69.9%, 81.4%, 0%, 55.7%)
CIE-LABlab(15.84, 35.32, -50.23)
CIE-LCHlch(15.84, 61.40, 305.11°)
OKLaboklab(29.01% 0.0216 -0.1451)
OKLCHoklch(29.01% 0.147 278.4)
XYZxyz(3.9075, 2.0683, 15.8129)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221571 #647115
analogous
#153671 #221571 #501571
triadic
#221571 #712215 #157122
tetradic
#221571 #711536 #647115 #157150
square
#221571 #711536 #647115 #157150
split-complementary
#221571 #715015 #367115
monochromatic
#08051A #120B3D #221571 #321FA5 #4229D7

Accessibility & contrast

On white

14.85
#221571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#221571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221571
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221571#FFFFFF#000000##FFFFFF
##2215711.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #221571;
/* rgb */ color: rgb(34, 21, 113);
/* oklch */ color: oklch(29.0% 0.147 278.4);
Tailwind
colors: {
  custom: {
    50: '#6a559b',
    500: '#221571',
    950: '#000000',
  },
}
SCSS
$custom: #221571;
$custom-light: #6a559b;
$custom-dark: #000000;
JSON
{
  "hex": "#221571",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 248.478,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29013,
    "c": 0.14667,
    "h": 278.4
  },
  "luminance": 0.02069
}

Semantic roles & 50–950 ramp

primary
#221571
secondary
#98A73B
accent
#EB3CD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221571

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

Preview Lab → · Contrast checker → · Palette generator →

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