#221578#221578

#221578 is a dark, vivid blue. Relative luminance 0.022; OKLCH L 29.8% C 0.156 H 277.2°. Best body text is #FFFFFF at 14.52:1 contrast (WCAG AA passes).

Color values

HEX#221578
RGBrgb(34, 21, 120)
HSLhsl(248, 70%, 28%)
HSVhsv(248, 83%, 47%)
CMYKcmyk(71.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(16.66, 37.61, -53.39)
CIE-LCHlch(16.66, 65.31, 305.17°)
OKLaboklab(29.83% 0.0195 -0.1543)
OKLCHoklch(29.83% 0.156 277.2)
XYZxyz(4.3169, 2.2321, 17.9690)
Luminance0.0223 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221578 #6B7815
analogous
#153978 #221578 #541578
triadic
#221578 #782215 #157822
tetradic
#221578 #781539 #6B7815 #157854
square
#221578 #781539 #6B7815 #157854
split-complementary
#221578 #785415 #397815
monochromatic
#07051A #130C44 #221578 #311EAC #442DDA

Accessibility & contrast

On white

14.52
#221578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#221578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221578
14.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221578#FFFFFF#000000##FFFFFF
##2215781.0014.521.4514.52
#FFFFFF14.521.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002576
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #221578;
/* rgb */ color: rgb(34, 21, 120);
/* oklch */ color: oklch(29.8% 0.156 277.2);
Tailwind
colors: {
  custom: {
    50: '#6c55a0',
    500: '#221578',
    950: '#000000',
  },
}
SCSS
$custom: #221578;
$custom-light: #6c55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#221578",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 247.879,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.29826,
    "c": 0.15551,
    "h": 277.2
  },
  "luminance": 0.02232
}

Semantic roles & 50–950 ramp

primary
#221578
secondary
#9FAE3B
accent
#ED3BD6
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #221578

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

Preview Lab → · Contrast checker → · Palette generator →

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