#221270#221270

#221270 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.5% C 0.148 H 279.1°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#221270
RGBrgb(34, 18, 112)
HSLhsl(250, 72%, 25%)
HSVhsv(250, 84%, 44%)
CMYKcmyk(69.6%, 83.9%, 0%, 56.1%)
CIE-LABlab(15.18, 36.56, -50.67)
CIE-LCHlch(15.18, 62.49, 305.81°)
OKLaboklab(28.52% 0.0235 -0.1463)
OKLCHoklch(28.52% 0.148 279.1)
XYZxyz(3.7997, 1.9422, 15.5007)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221270 #607012
analogous
#123170 #221270 #511270
triadic
#221270 #702212 #127022
tetradic
#221270 #701231 #607012 #127051
square
#221270 #701231 #607012 #127051
split-complementary
#221270 #705112 #317012
monochromatic
#08041A #120A3B #221270 #321AA5 #4223D9

Accessibility & contrast

On white

15.12
#221270 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221270
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221270#FFFFFF#000000##FFFFFF
##2212701.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A73
Deuteranopia (green-blind)
#00226E
Tritanopia (blue-blind)
#002F41
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #221270;
/* rgb */ color: rgb(34, 18, 112);
/* oklch */ color: oklch(28.5% 0.148 279.1);
Tailwind
colors: {
  custom: {
    50: '#6a539a',
    500: '#221270',
    950: '#000000',
  },
}
SCSS
$custom: #221270;
$custom-light: #6a539a;
$custom-dark: #000000;
JSON
{
  "hex": "#221270",
  "rgb": {
    "r": 34,
    "g": 18,
    "b": 112
  },
  "hsl": {
    "h": 250.213,
    "s": 72.308,
    "l": 25.49
  },
  "oklch": {
    "l": 0.28518,
    "c": 0.1482,
    "h": 279.1
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#221270
secondary
#94A737
accent
#EF39D0
background
#F6F4F9
surface
#ECE7F2
border
#C7C3CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #221270

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

Preview Lab → · Contrast checker → · Palette generator →

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