#221452#221452

#221452 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.5% C 0.106 H 286.5°. Best body text is #FFFFFF at 16.28:1 contrast (WCAG AA passes).

Color values

HEX#221452
RGBrgb(34, 20, 82)
HSLhsl(254, 61%, 20%)
HSVhsv(254, 76%, 32%)
CMYKcmyk(58.5%, 75.6%, 0%, 67.8%)
CIE-LABlab(12.28, 25.43, -35.46)
CIE-LCHlch(12.28, 43.64, 305.65°)
OKLaboklab(25.49% 0.0303 -0.1019)
OKLCHoklch(25.49% 0.106 286.5)
XYZxyz(2.4324, 1.4495, 8.1326)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221452 #445214
analogous
#142552 #221452 #411452
triadic
#221452 #522214 #145222
tetradic
#221452 #521425 #445214 #145241
square
#221452 #521425 #445214 #145241
split-complementary
#221452 #524114 #255214
monochromatic
#0A0619 #0E0821 #221452 #362083 #4B2CB4

Accessibility & contrast

On white

16.28
#221452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#221452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221452
16.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221452#FFFFFF#000000##FFFFFF
##2214521.0016.281.2916.28
#FFFFFF16.281.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#001E51
Tritanopia (blue-blind)
#0E2431
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221452;
/* rgb */ color: rgb(34, 20, 82);
/* oklch */ color: oklch(25.5% 0.106 286.5);
Tailwind
colors: {
  custom: {
    50: '#635383',
    500: '#221452',
    950: '#000000',
  },
}
SCSS
$custom: #221452;
$custom-light: #635383;
$custom-dark: #000000;
JSON
{
  "hex": "#221452",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 253.548,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.25489,
    "c": 0.10632,
    "h": 286.5
  },
  "luminance": 0.0145
}

Semantic roles & 50–950 ramp

primary
#221452
secondary
#788A38
accent
#E444C0
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221452

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

Preview Lab → · Contrast checker → · Palette generator →

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