#22126D#22126D

#22126D is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.144 H 279.7°. Best body text is #FFFFFF at 15.27:1 contrast (WCAG AA passes).

Color values

HEX#22126D
RGBrgb(34, 18, 109)
HSLhsl(251, 72%, 25%)
HSVhsv(251, 83%, 43%)
CMYKcmyk(68.8%, 83.5%, 0%, 57.3%)
CIE-LABlab(14.83, 35.60, -49.30)
CIE-LCHlch(14.83, 60.81, 305.83°)
OKLaboklab(28.17% 0.0245 -0.1423)
OKLCHoklch(28.17% 0.144 279.7)
XYZxyz(3.6354, 1.8765, 14.6357)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22126D #5D6D12
analogous
#12306D #22126D #4F126D
triadic
#22126D #6D2212 #126D22
tetradic
#22126D #6D1230 #5D6D12 #126D4F
square
#22126D #6D1230 #5D6D12 #126D4F
split-complementary
#22126D #6D4F12 #306D12
monochromatic
#08041A #120938 #22126D #321BA2 #4323D6

Accessibility & contrast

On white

15.27
#22126D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#22126D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #22126D
15.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22126D#FFFFFF#000000##FFFFFF
##22126D1.0015.271.3815.27
#FFFFFF15.271.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002970
Deuteranopia (green-blind)
#00226B
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #22126d;
/* rgb */ color: rgb(34, 18, 109);
/* oklch */ color: oklch(28.2% 0.144 279.7);
Tailwind
colors: {
  custom: {
    50: '#695398',
    500: '#22126d',
    950: '#000000',
  },
}
SCSS
$custom: #22126d;
$custom-light: #695398;
$custom-dark: #000000;
JSON
{
  "hex": "#22126d",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 109
  },
  "hsl": {
    "h": 250.549,
    "s": 71.654,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28166,
    "c": 0.14443,
    "h": 279.7
  },
  "luminance": 0.01877
}

Semantic roles & 50–950 ramp

primary
#22126D
secondary
#91A437
accent
#EE39CF
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07020E
muted
#7A787E

Preview Lab

Preview with #22126D

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

Preview Lab → · Contrast checker → · Palette generator →

#22126D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva