#221787#221787

#221787 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.8% C 0.172 H 274.8°. Best body text is #FFFFFF at 13.63:1 contrast (WCAG AA passes).

Color values

HEX#221787
RGBrgb(34, 23, 135)
HSLhsl(246, 71%, 31%)
HSVhsv(246, 83%, 53%)
CMYKcmyk(74.8%, 83%, 0%, 47.1%)
CIE-LABlab(18.81, 41.45, -59.37)
CIE-LCHlch(18.81, 72.40, 304.92°)
OKLaboklab(31.84% 0.0144 -0.1717)
OKLCHoklch(31.84% 0.172 274.8)
XYZxyz(5.3378, 2.7016, 23.1571)
Luminance0.0270 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221787 #7C8717
analogous
#174487 #221787 #5A1787
triadic
#221787 #872217 #178722
tetradic
#221787 #871744 #7C8717 #17875A
square
#221787 #871744 #7C8717 #17875A
split-complementary
#221787 #875A17 #448717
monochromatic
#08051E #150E53 #221787 #2F20BB #4B3BDE

Accessibility & contrast

On white

13.63
#221787 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#221787 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221787
13.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221787#FFFFFF#000000##FFFFFF
##2217871.0013.631.5413.63
#FFFFFF13.631.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.631.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: #221787;
/* rgb */ color: rgb(34, 23, 135);
/* oklch */ color: oklch(31.8% 0.172 274.8);
Tailwind
colors: {
  custom: {
    50: '#6f58ab',
    500: '#221787',
    950: '#000000',
  },
}
SCSS
$custom: #221787;
$custom-light: #6f58ab;
$custom-dark: #000000;
JSON
{
  "hex": "#221787",
  "rgb": {
    "r": 34,
    "g": 23,
    "b": 135
  },
  "hsl": {
    "h": 245.893,
    "s": 70.886,
    "l": 30.98
  },
  "oklch": {
    "l": 0.31841,
    "c": 0.17228,
    "h": 274.8
  },
  "luminance": 0.02702
}

Semantic roles & 50–950 ramp

primary
#221787
secondary
#AFBB3F
accent
#EE3ADC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #221787

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

Preview Lab → · Contrast checker → · Palette generator →

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