#221871#221871

#221871 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.4% C 0.144 H 277.9°. Best body text is #FFFFFF at 14.61:1 contrast (WCAG AA passes).

Color values

HEX#221871
RGBrgb(34, 24, 113)
HSLhsl(247, 65%, 27%)
HSVhsv(247, 79%, 44%)
CMYKcmyk(69.9%, 78.8%, 0%, 55.7%)
CIE-LABlab(16.43, 33.63, -49.25)
CIE-LCHlch(16.43, 59.64, 304.33°)
OKLaboklab(29.43% 0.0198 -0.1423)
OKLCHoklch(29.43% 0.144 277.9)
XYZxyz(3.9660, 2.1853, 15.8324)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221871 #677118
analogous
#183A71 #221871 #4F1871
triadic
#221871 #712218 #187122
tetradic
#221871 #71183A #677118 #18714F
square
#221871 #71183A #677118 #18714F
split-complementary
#221871 #714F18 #3A7118
monochromatic
#080519 #130D3F #221871 #3123A3 #4330D3

Accessibility & contrast

On white

14.61
#221871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#221871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221871
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221871#FFFFFF#000000##FFFFFF
##2218711.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#003243
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221871;
/* rgb */ color: rgb(34, 24, 113);
/* oklch */ color: oklch(29.4% 0.144 277.9);
Tailwind
colors: {
  custom: {
    50: '#6a579b',
    500: '#221871',
    950: '#000000',
  },
}
SCSS
$custom: #221871;
$custom-light: #6a579b;
$custom-dark: #000000;
JSON
{
  "hex": "#221871",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 246.742,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.29426,
    "c": 0.14365,
    "h": 277.9
  },
  "luminance": 0.02186
}

Semantic roles & 50–950 ramp

primary
#221871
secondary
#9BA63E
accent
#E840D5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221871

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

Preview Lab → · Contrast checker → · Palette generator →

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