#221456#221456

#221456 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.112 H 285.2°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#221456
RGBrgb(34, 20, 86)
HSLhsl(253, 62%, 21%)
HSVhsv(253, 77%, 34%)
CMYKcmyk(60.5%, 76.7%, 0%, 66.3%)
CIE-LABlab(12.68, 26.80, -37.53)
CIE-LCHlch(12.68, 46.12, 305.53°)
OKLaboklab(25.9% 0.0294 -0.108)
OKLCHoklch(25.9% 0.112 285.2)
XYZxyz(2.5890, 1.5121, 8.9577)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221456 #485614
analogous
#142756 #221456 #431456
triadic
#221456 #562214 #145622
tetradic
#221456 #561427 #485614 #145643
square
#221456 #561427 #485614 #145643
split-complementary
#221456 #564314 #275614
monochromatic
#0A0619 #0E0824 #221456 #362088 #492BB9

Accessibility & contrast

On white

16.12
#221456 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221456
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221456#FFFFFF#000000##FFFFFF
##2214561.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002358
Deuteranopia (green-blind)
#001F55
Tritanopia (blue-blind)
#0A2633
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #221456;
/* rgb */ color: rgb(34, 20, 86);
/* oklch */ color: oklch(25.9% 0.112 285.2);
Tailwind
colors: {
  custom: {
    50: '#645386',
    500: '#221456',
    950: '#000000',
  },
}
SCSS
$custom: #221456;
$custom-light: #645386;
$custom-dark: #000000;
JSON
{
  "hex": "#221456",
  "rgb": {
    "r": 34,
    "g": 20,
    "b": 86
  },
  "hsl": {
    "h": 252.727,
    "s": 62.264,
    "l": 20.784
  },
  "oklch": {
    "l": 0.25899,
    "c": 0.11192,
    "h": 285.2
  },
  "luminance": 0.01512
}

Semantic roles & 50–950 ramp

primary
#221456
secondary
#7C8E38
accent
#E542C3
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221456

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

Preview Lab → · Contrast checker → · Palette generator →

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