#22126F#22126F

#22126F is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.4% C 0.147 H 279.3°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#22126F
RGBrgb(34, 18, 111)
HSLhsl(250, 72%, 25%)
HSVhsv(250, 84%, 44%)
CMYKcmyk(69.4%, 83.8%, 0%, 56.5%)
CIE-LABlab(15.06, 36.24, -50.22)
CIE-LCHlch(15.06, 61.93, 305.82°)
OKLaboklab(28.4% 0.0238 -0.145)
OKLCHoklch(28.4% 0.147 279.3)
XYZxyz(3.7443, 1.9201, 15.2091)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#22126F #5F6F12
analogous
#12306F #22126F #51126F
triadic
#22126F #6F2212 #126F22
tetradic
#22126F #6F1230 #5F6F12 #126F51
square
#22126F #6F1230 #5F6F12 #126F51
split-complementary
#22126F #6F5112 #306F12
monochromatic
#08041A #12093A #22126F #321BA4 #4223D8

Accessibility & contrast

On white

15.17
#22126F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #22126F
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##22126F#FFFFFF#000000##FFFFFF
##22126F1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002972
Deuteranopia (green-blind)
#00226D
Tritanopia (blue-blind)
#002E41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #22126f;
/* rgb */ color: rgb(34, 18, 111);
/* oklch */ color: oklch(28.4% 0.147 279.3);
Tailwind
colors: {
  custom: {
    50: '#6a5399',
    500: '#22126f',
    950: '#000000',
  },
}
SCSS
$custom: #22126f;
$custom-light: #6a5399;
$custom-dark: #000000;
JSON
{
  "hex": "#22126f",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 111
  },
  "hsl": {
    "h": 250.323,
    "s": 72.093,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28401,
    "c": 0.14694,
    "h": 279.3
  },
  "luminance": 0.0192
}

Semantic roles & 50–950 ramp

primary
#22126F
secondary
#93A637
accent
#EF39D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #22126F

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

Preview Lab → · Contrast checker → · Palette generator →

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