#221572#221572

#221572 is a dark, vivid blue. Relative luminance 0.021; OKLCH L 29.1% C 0.148 H 278.3°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#221572
RGBrgb(34, 21, 114)
HSLhsl(248, 69%, 26%)
HSVhsv(248, 82%, 45%)
CMYKcmyk(70.2%, 81.6%, 0%, 55.3%)
CIE-LABlab(15.96, 35.65, -50.68)
CIE-LCHlch(15.96, 61.96, 305.12°)
OKLaboklab(29.13% 0.0213 -0.1464)
OKLCHoklch(29.13% 0.148 278.3)
XYZxyz(3.9641, 2.0910, 16.1110)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221572 #657215
analogous
#153772 #221572 #511572
triadic
#221572 #722215 #157222
tetradic
#221572 #721537 #657215 #157251
square
#221572 #721537 #657215 #157251
split-complementary
#221572 #725115 #377215
monochromatic
#08051A #130B3E #221572 #311FA6 #422AD8

Accessibility & contrast

On white

14.81
#221572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#221572 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221572
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221572#FFFFFF#000000##FFFFFF
##2215721.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #221572;
/* rgb */ color: rgb(34, 21, 114);
/* oklch */ color: oklch(29.1% 0.148 278.3);
Tailwind
colors: {
  custom: {
    50: '#6a559c',
    500: '#221572',
    950: '#000000',
  },
}
SCSS
$custom: #221572;
$custom-light: #6a559c;
$custom-dark: #000000;
JSON
{
  "hex": "#221572",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 248.387,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29128,
    "c": 0.14795,
    "h": 278.3
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#221572
secondary
#99A83B
accent
#EC3CD3
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221572

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

Preview Lab → · Contrast checker → · Palette generator →

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