#221371#221371

#221371 is a dark, vivid blue. Relative luminance 0.020; OKLCH L 28.8% C 0.149 H 278.8°. Best body text is #FFFFFF at 15.00:1 contrast (WCAG AA passes).

Color values

HEX#221371
RGBrgb(34, 19, 113)
HSLhsl(250, 71%, 26%)
HSVhsv(250, 83%, 44%)
CMYKcmyk(69.9%, 83.2%, 0%, 55.7%)
CIE-LABlab(15.48, 36.37, -50.83)
CIE-LCHlch(15.48, 62.51, 305.59°)
OKLaboklab(28.76% 0.0227 -0.1468)
OKLCHoklch(28.76% 0.149 278.8)
XYZxyz(3.8722, 1.9978, 15.8011)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221371 #627113
analogous
#133371 #221371 #511371
triadic
#221371 #712213 #137122
tetradic
#221371 #711333 #627113 #137151
square
#221371 #711333 #627113 #137151
split-complementary
#221371 #715113 #337113
monochromatic
#08041A #120A3D #221371 #321CA5 #4225DA

Accessibility & contrast

On white

15.00
#221371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#221371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221371
15.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221371#FFFFFF#000000##FFFFFF
##2213711.0015.001.4015.00
#FFFFFF15.001.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00236F
Tritanopia (blue-blind)
#003042
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #221371;
/* rgb */ color: rgb(34, 19, 113);
/* oklch */ color: oklch(28.8% 0.149 278.8);
Tailwind
colors: {
  custom: {
    50: '#6a549b',
    500: '#221371',
    950: '#000000',
  },
}
SCSS
$custom: #221371;
$custom-light: #6a549b;
$custom-dark: #000000;
JSON
{
  "hex": "#221371",
  "rgb": {
    "r": 34,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 249.574,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.28757,
    "c": 0.14855,
    "h": 278.8
  },
  "luminance": 0.01998
}

Semantic roles & 50–950 ramp

primary
#221371
secondary
#96A838
accent
#EE3AD1
background
#F6F4F9
surface
#ECE8F2
border
#C7C4CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221371

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

Preview Lab → · Contrast checker → · Palette generator →

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