#221254#221254

#221254 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.4% C 0.112 H 286.5°. Best body text is #FFFFFF at 16.37:1 contrast (WCAG AA passes).

Color values

HEX#221254
RGBrgb(34, 18, 84)
HSLhsl(255, 65%, 20%)
HSVhsv(255, 79%, 33%)
CMYKcmyk(59.5%, 78.6%, 0%, 67.1%)
CIE-LABlab(12.04, 27.34, -37.22)
CIE-LCHlch(12.04, 46.19, 306.30°)
OKLaboklab(25.38% 0.0318 -0.1071)
OKLCHoklch(25.38% 0.112 286.5)
XYZxyz(2.4757, 1.4127, 8.5280)
Luminance0.0141 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221254 #445412
analogous
#122354 #221254 #431254
triadic
#221254 #542212 #125422
tetradic
#221254 #541223 #445412 #125443
square
#221254 #541223 #445412 #125443
split-complementary
#221254 #544312 #235412
monochromatic
#0A0519 #0E0722 #221254 #361D86 #4B28B9

Accessibility & contrast

On white

16.37
#221254 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221254
16.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221254#FFFFFF#000000##FFFFFF
##2212541.0016.371.2816.37
#FFFFFF16.371.0021.001.00
#0000001.2821.001.0021.00
##FFFFFF16.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002156
Deuteranopia (green-blind)
#001E53
Tritanopia (blue-blind)
#0C2431
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221254;
/* rgb */ color: rgb(34, 18, 84);
/* oklch */ color: oklch(25.4% 0.112 286.5);
Tailwind
colors: {
  custom: {
    50: '#645185',
    500: '#221254',
    950: '#000000',
  },
}
SCSS
$custom: #221254;
$custom-light: #645185;
$custom-dark: #000000;
JSON
{
  "hex": "#221254",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 84
  },
  "hsl": {
    "h": 254.545,
    "s": 64.706,
    "l": 20
  },
  "oklch": {
    "l": 0.25379,
    "c": 0.11169,
    "h": 286.5
  },
  "luminance": 0.01413
}

Semantic roles & 50–950 ramp

primary
#221254
secondary
#788D35
accent
#E840BF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221254

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

Preview Lab → · Contrast checker → · Palette generator →

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