#222171#222171

#222171 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 30.9% C 0.133 H 275.8°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#222171
RGBrgb(34, 33, 113)
HSLhsl(241, 55%, 29%)
HSVhsv(241, 71%, 44%)
CMYKcmyk(69.9%, 70.8%, 0%, 55.7%)
CIE-LABlab(18.45, 28.04, -45.93)
CIE-LCHlch(18.45, 53.81, 301.40°)
OKLaboklab(30.87% 0.0134 -0.1326)
OKLCHoklch(30.87% 0.133 275.8)
XYZxyz(4.1832, 2.6197, 15.9048)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#222171 #707121
analogous
#214871 #222171 #4A2171
triadic
#222171 #712221 #217122
tetradic
#222171 #712148 #707121 #21714A
square
#222171 #712148 #707121 #21714A
split-complementary
#222171 #714A21 #487121
monochromatic
#070718 #141342 #222171 #302FA0 #4644C8

Accessibility & contrast

On white

13.78
#222171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#222171 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #222171
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##222171#FFFFFF#000000##FFFFFF
##2221711.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003173
Deuteranopia (green-blind)
#00296F
Tritanopia (blue-blind)
#003646
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #222171;
/* rgb */ color: rgb(34, 33, 113);
/* oklch */ color: oklch(30.9% 0.133 275.8);
Tailwind
colors: {
  custom: {
    50: '#695d9b',
    500: '#222171',
    950: '#000000',
  },
}
SCSS
$custom: #222171;
$custom-light: #695d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#222171",
  "rgb": {
    "r": 34,
    "g": 33,
    "b": 113
  },
  "hsl": {
    "h": 240.75,
    "s": 54.795,
    "l": 28.627
  },
  "oklch": {
    "l": 0.30869,
    "c": 0.13328,
    "h": 275.8
  },
  "luminance": 0.0262
}

Semantic roles & 50–950 ramp

primary
#222171
secondary
#A3A549
accent
#DE4ADC
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07040E
muted
#7A797E

Preview Lab

Preview with #222171

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

Preview Lab → · Contrast checker → · Palette generator →

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