#221252#221252

#221252 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.2% C 0.109 H 287.2°. Best body text is #FFFFFF at 16.45:1 contrast (WCAG AA passes).

Color values

HEX#221252
RGBrgb(34, 18, 82)
HSLhsl(255, 64%, 20%)
HSVhsv(255, 78%, 32%)
CMYKcmyk(58.5%, 78%, 0%, 67.8%)
CIE-LABlab(11.84, 26.67, -36.20)
CIE-LCHlch(11.84, 44.96, 306.39°)
OKLaboklab(25.17% 0.0323 -0.1041)
OKLCHoklch(25.17% 0.109 287.2)
XYZxyz(2.3985, 1.3818, 8.1213)
Luminance0.0138 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221252 #425212
analogous
#122252 #221252 #421252
triadic
#221252 #522212 #125222
tetradic
#221252 #521222 #425212 #125242
square
#221252 #521222 #425212 #125242
split-complementary
#221252 #524212 #225212
monochromatic
#0A0619 #0D0720 #221252 #371D84 #4C28B6

Accessibility & contrast

On white

16.45
#221252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.28
#221252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221252
16.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221252#FFFFFF#000000##FFFFFF
##2212521.0016.451.2816.45
#FFFFFF16.451.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001D51
Tritanopia (blue-blind)
#0E2330
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #221252;
/* rgb */ color: rgb(34, 18, 82);
/* oklch */ color: oklch(25.2% 0.109 287.2);
Tailwind
colors: {
  custom: {
    50: '#635183',
    500: '#221252',
    950: '#000000',
  },
}
SCSS
$custom: #221252;
$custom-light: #635183;
$custom-dark: #000000;
JSON
{
  "hex": "#221252",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 255,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.2517,
    "c": 0.10895,
    "h": 287.2
  },
  "luminance": 0.01382
}

Semantic roles & 50–950 ramp

primary
#221252
secondary
#758B35
accent
#E741BD
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221252

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

Preview Lab → · Contrast checker → · Palette generator →

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