#221887#221887

#221887 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 32.0% C 0.171 H 274.7°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#221887
RGBrgb(34, 24, 135)
HSLhsl(245, 70%, 31%)
HSVhsv(245, 82%, 53%)
CMYKcmyk(74.8%, 82.2%, 0%, 47.1%)
CIE-LABlab(18.98, 40.94, -59.08)
CIE-LCHlch(18.98, 71.88, 304.72°)
OKLaboklab(31.96% 0.014 -0.1709)
OKLCHoklch(31.96% 0.171 274.7)
XYZxyz(5.3580, 2.7421, 23.1639)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221887 #7D8718
analogous
#184587 #221887 #591887
triadic
#221887 #872218 #188722
tetradic
#221887 #871845 #7D8718 #188759
square
#221887 #871845 #7D8718 #188759
split-complementary
#221887 #875918 #458718
monochromatic
#08061F #150F53 #221887 #2F21BB #4B3DDC

Accessibility & contrast

On white

13.56
#221887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#221887 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221887
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221887#FFFFFF#000000##FFFFFF
##2218871.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #221887;
/* rgb */ color: rgb(34, 24, 135);
/* oklch */ color: oklch(32.0% 0.171 274.7);
Tailwind
colors: {
  custom: {
    50: '#6f58ab',
    500: '#221887',
    950: '#000000',
  },
}
SCSS
$custom: #221887;
$custom-light: #6f58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#221887",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 245.405,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.31961,
    "c": 0.17143,
    "h": 274.7
  },
  "luminance": 0.02743
}

Semantic roles & 50–950 ramp

primary
#221887
secondary
#B0BB40
accent
#ED3BDD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221887

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

Preview Lab → · Contrast checker → · Palette generator →

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