#221262#221262

#221262 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 26.9% C 0.130 H 282.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#221262
RGBrgb(34, 18, 98)
HSLhsl(252, 69%, 23%)
HSVhsv(252, 82%, 38%)
CMYKcmyk(65.3%, 81.6%, 0%, 61.6%)
CIE-LABlab(13.56, 32.00, -44.15)
CIE-LCHlch(13.56, 54.53, 305.94°)
OKLaboklab(26.91% 0.0279 -0.1273)
OKLCHoklch(26.91% 0.13 282.4)
XYZxyz(3.0799, 1.6543, 11.7099)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221262 #526212
analogous
#122A62 #221262 #4A1262
triadic
#221262 #622212 #126222
tetradic
#221262 #62122A #526212 #12624A
square
#221262 #62122A #526212 #12624A
split-complementary
#221262 #624A12 #2A6212
monochromatic
#09051A #10092E #221262 #341B96 #4625C9

Accessibility & contrast

On white

15.78
#221262 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#221262 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221262
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221262#FFFFFF#000000##FFFFFF
##2212621.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002564
Deuteranopia (green-blind)
#002061
Tritanopia (blue-blind)
#002939
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #221262;
/* rgb */ color: rgb(34, 18, 98);
/* oklch */ color: oklch(26.9% 0.130 282.4);
Tailwind
colors: {
  custom: {
    50: '#675290',
    500: '#221262',
    950: '#000000',
  },
}
SCSS
$custom: #221262;
$custom-light: #675290;
$custom-dark: #000000;
JSON
{
  "hex": "#221262",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 98
  },
  "hsl": {
    "h": 252,
    "s": 68.966,
    "l": 22.745
  },
  "oklch": {
    "l": 0.26905,
    "c": 0.13035,
    "h": 282.4
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#221262
secondary
#869A36
accent
#EC3CC9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #221262

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

Preview Lab → · Contrast checker → · Palette generator →

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