#221266#221266

#221266 is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.4% C 0.136 H 281.3°. Best body text is #FFFFFF at 15.60:1 contrast (WCAG AA passes).

Color values

HEX#221266
RGBrgb(34, 18, 102)
HSLhsl(251, 70%, 24%)
HSVhsv(251, 82%, 40%)
CMYKcmyk(66.7%, 82.4%, 0%, 60%)
CIE-LABlab(14.01, 33.32, -46.05)
CIE-LCHlch(14.01, 56.84, 305.89°)
OKLaboklab(27.36% 0.0267 -0.1329)
OKLCHoklch(27.36% 0.136 281.3)
XYZxyz(3.2735, 1.7318, 12.7296)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221266 #566612
analogous
#122C66 #221266 #4C1266
triadic
#221266 #662212 #126622
tetradic
#221266 #66122C #566612 #12664C
square
#221266 #66122C #566612 #12664C
split-complementary
#221266 #664C12 #2C6612
monochromatic
#09051A #110932 #221266 #331B9A #4524CE

Accessibility & contrast

On white

15.60
#221266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#221266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221266
15.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221266#FFFFFF#000000##FFFFFF
##2212661.0015.601.3515.60
#FFFFFF15.601.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002668
Deuteranopia (green-blind)
#002165
Tritanopia (blue-blind)
#002B3C
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #221266;
/* rgb */ color: rgb(34, 18, 102);
/* oklch */ color: oklch(27.4% 0.136 281.3);
Tailwind
colors: {
  custom: {
    50: '#685393',
    500: '#221266',
    950: '#000000',
  },
}
SCSS
$custom: #221266;
$custom-light: #685393;
$custom-dark: #000000;
JSON
{
  "hex": "#221266",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 251.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.27358,
    "c": 0.13552,
    "h": 281.3
  },
  "luminance": 0.01732
}

Semantic roles & 50–950 ramp

primary
#221266
secondary
#8A9E36
accent
#ED3BCB
background
#F6F4F9
surface
#EBE7F1
border
#C6C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #221266

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

Preview Lab → · Contrast checker → · Palette generator →

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