#221552#221552

#221552 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.105 H 286.2°. Best body text is #FFFFFF at 16.19:1 contrast (WCAG AA passes).

Color values

HEX#221552
RGBrgb(34, 21, 82)
HSLhsl(253, 59%, 20%)
HSVhsv(253, 74%, 32%)
CMYKcmyk(58.5%, 74.4%, 0%, 67.8%)
CIE-LABlab(12.52, 24.80, -35.08)
CIE-LCHlch(12.52, 42.96, 305.25°)
OKLaboklab(25.66% 0.0292 -0.1008)
OKLCHoklch(25.66% 0.105 286.2)
XYZxyz(2.4504, 1.4855, 8.1386)
Luminance0.0149 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221552 #455215
analogous
#152652 #221552 #401552
triadic
#221552 #522215 #155222
tetradic
#221552 #521526 #455215 #155240
square
#221552 #521526 #455215 #155240
split-complementary
#221552 #524015 #265215
monochromatic
#0A0618 #0E0921 #221552 #362183 #4A2EB3

Accessibility & contrast

On white

16.19
#221552 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#221552 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221552
16.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221552#FFFFFF#000000##FFFFFF
##2215521.0016.191.3016.19
#FFFFFF16.191.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#0E2531
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #221552;
/* rgb */ color: rgb(34, 21, 82);
/* oklch */ color: oklch(25.7% 0.105 286.2);
Tailwind
colors: {
  custom: {
    50: '#635383',
    500: '#221552',
    950: '#000000',
  },
}
SCSS
$custom: #221552;
$custom-light: #635383;
$custom-dark: #000000;
JSON
{
  "hex": "#221552",
  "rgb": {
    "r": 34,
    "g": 21,
    "b": 82
  },
  "hsl": {
    "h": 252.787,
    "s": 59.223,
    "l": 20.196
  },
  "oklch": {
    "l": 0.25655,
    "c": 0.10496,
    "h": 286.2
  },
  "luminance": 0.01486
}

Semantic roles & 50–950 ramp

primary
#221552
secondary
#798A39
accent
#E245C1
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221552

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

Preview Lab → · Contrast checker → · Palette generator →

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