#221271#221271

#221271 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.149 H 278.9°. Best body text is #FFFFFF at 15.08:1 contrast (WCAG AA passes).

Color values

HEX#221271
RGBrgb(34, 18, 113)
HSLhsl(250, 73%, 26%)
HSVhsv(250, 84%, 44%)
CMYKcmyk(69.9%, 84.1%, 0%, 55.7%)
CIE-LABlab(15.30, 36.89, -51.12)
CIE-LCHlch(15.30, 63.04, 305.81°)
OKLaboklab(28.64% 0.0232 -0.1476)
OKLCHoklch(28.64% 0.149 278.9)
XYZxyz(3.8557, 1.9646, 15.7956)
Luminance0.0197 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221271 #617112
analogous
#123171 #221271 #511271
triadic
#221271 #712212 #127122
tetradic
#221271 #711231 #617112 #127151
square
#221271 #711231 #617112 #127151
split-complementary
#221271 #715112 #317112
monochromatic
#08041A #120A3C #221271 #321AA6 #4223DB

Accessibility & contrast

On white

15.08
#221271 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#221271 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221271
15.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221271#FFFFFF#000000##FFFFFF
##2212711.0015.081.3915.08
#FFFFFF15.081.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00226F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221271;
/* rgb */ color: rgb(34, 18, 113);
/* oklch */ color: oklch(28.6% 0.149 278.9);
Tailwind
colors: {
  custom: {
    50: '#6a539b',
    500: '#221271',
    950: '#000000',
  },
}
SCSS
$custom: #221271;
$custom-light: #6a539b;
$custom-dark: #000000;
JSON
{
  "hex": "#221271",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 113
  },
  "hsl": {
    "h": 250.105,
    "s": 72.519,
    "l": 25.686
  },
  "oklch": {
    "l": 0.28636,
    "c": 0.14945,
    "h": 278.9
  },
  "luminance": 0.01965
}

Semantic roles & 50–950 ramp

primary
#221271
secondary
#95A837
accent
#EF39D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221271

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

Preview Lab → · Contrast checker → · Palette generator →

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