#221158#221158

#221158 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.7% C 0.118 H 285.5°. Best body text is #FFFFFF at 16.29:1 contrast (WCAG AA passes).

Color values

HEX#221158
RGBrgb(34, 17, 88)
HSLhsl(254, 68%, 21%)
HSVhsv(254, 81%, 35%)
CMYKcmyk(61.4%, 80.7%, 0%, 65.5%)
CIE-LABlab(12.26, 29.26, -39.59)
CIE-LCHlch(12.26, 49.23, 306.47°)
OKLaboklab(25.66% 0.0316 -0.114)
OKLCHoklch(25.66% 0.118 285.5)
XYZxyz(2.6211, 1.4454, 9.3715)
Luminance0.0145 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221158 #475811
analogous
#112358 #221158 #451158
triadic
#221158 #582211 #115822
tetradic
#221158 #581123 #475811 #115845
square
#221158 #581123 #475811 #115845
split-complementary
#221158 #584511 #235811
monochromatic
#0A051A #0E0725 #221158 #361B8B #4A25BF

Accessibility & contrast

On white

16.29
#221158 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#221158 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221158
16.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221158#FFFFFF#000000##FFFFFF
##2211581.0016.291.2916.29
#FFFFFF16.291.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00225A
Deuteranopia (green-blind)
#001E57
Tritanopia (blue-blind)
#072533
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221158;
/* rgb */ color: rgb(34, 17, 88);
/* oklch */ color: oklch(25.7% 0.118 285.5);
Tailwind
colors: {
  custom: {
    50: '#655188',
    500: '#221158',
    950: '#000000',
  },
}
SCSS
$custom: #221158;
$custom-light: #655188;
$custom-dark: #000000;
JSON
{
  "hex": "#221158",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 88
  },
  "hsl": {
    "h": 254.366,
    "s": 67.619,
    "l": 20.588
  },
  "oklch": {
    "l": 0.2566,
    "c": 0.11828,
    "h": 285.5
  },
  "luminance": 0.01446
}

Semantic roles & 50–950 ramp

primary
#221158
secondary
#7B9134
accent
#EA3DC1
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221158

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

Preview Lab → · Contrast checker → · Palette generator →

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