#221987#221987

#221987 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.171 H 274.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#221987
RGBrgb(34, 25, 135)
HSLhsl(245, 69%, 31%)
HSVhsv(245, 81%, 53%)
CMYKcmyk(74.8%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.16, 40.42, -58.79)
CIE-LCHlch(19.16, 71.35, 304.51°)
OKLaboklab(32.09% 0.0136 -0.17)
OKLCHoklch(32.09% 0.171 274.6)
XYZxyz(5.3790, 2.7841, 23.1709)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221987 #7E8719
analogous
#194787 #221987 #591987
triadic
#221987 #872219 #198722
tetradic
#221987 #871947 #7E8719 #198759
square
#221987 #871947 #7E8719 #198759
split-complementary
#221987 #875919 #478719
monochromatic
#080620 #150F53 #221987 #2F23BB #4C3FDB

Accessibility & contrast

On white

13.49
#221987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#221987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221987
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221987#FFFFFF#000000##FFFFFF
##2219871.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002985
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #221987;
/* rgb */ color: rgb(34, 25, 135);
/* oklch */ color: oklch(32.1% 0.171 274.6);
Tailwind
colors: {
  custom: {
    50: '#6f59ab',
    500: '#221987',
    950: '#000000',
  },
}
SCSS
$custom: #221987;
$custom-light: #6f59ab;
$custom-dark: #000000;
JSON
{
  "hex": "#221987",
  "rgb": {
    "r": 34,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 244.909,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32085,
    "c": 0.17056,
    "h": 274.6
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#221987
secondary
#B1BA41
accent
#EC3CDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #221987

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

Preview Lab → · Contrast checker → · Palette generator →

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