#221157#221157

#221157 is a dark, moderate violet. Relative luminance 0.014; OKLCH L 25.6% C 0.117 H 285.8°. Best body text is #FFFFFF at 16.33:1 contrast (WCAG AA passes).

Color values

HEX#221157
RGBrgb(34, 17, 87)
HSLhsl(255, 67%, 20%)
HSVhsv(255, 80%, 34%)
CMYKcmyk(60.9%, 80.5%, 0%, 65.9%)
CIE-LABlab(12.15, 28.93, -39.08)
CIE-LCHlch(12.15, 48.63, 306.51°)
OKLaboklab(25.55% 0.0319 -0.1125)
OKLCHoklch(25.55% 0.117 285.8)
XYZxyz(2.5799, 1.4290, 9.1548)
Luminance0.0143 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221157 #465711
analogous
#112357 #221157 #451157
triadic
#221157 #572211 #115722
tetradic
#221157 #571123 #465711 #115745
square
#221157 #571123 #465711 #115745
split-complementary
#221157 #574511 #235711
monochromatic
#0A051A #0E0724 #221157 #361B8A #4A25BD

Accessibility & contrast

On white

16.33
#221157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #221157
16.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221157#FFFFFF#000000##FFFFFF
##2211571.0016.331.2916.33
#FFFFFF16.331.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002259
Deuteranopia (green-blind)
#001E56
Tritanopia (blue-blind)
#092433
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #221157;
/* rgb */ color: rgb(34, 17, 87);
/* oklch */ color: oklch(25.6% 0.117 285.8);
Tailwind
colors: {
  custom: {
    50: '#655187',
    500: '#221157',
    950: '#000000',
  },
}
SCSS
$custom: #221157;
$custom-light: #655187;
$custom-dark: #000000;
JSON
{
  "hex": "#221157",
  "rgb": {
    "r": 34,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 254.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.25551,
    "c": 0.11695,
    "h": 285.8
  },
  "luminance": 0.01429
}

Semantic roles & 50–950 ramp

primary
#221157
secondary
#7A9034
accent
#EA3EC0
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#06020B
muted
#7A787C

Preview Lab

Preview with #221157

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

Preview Lab → · Contrast checker → · Palette generator →

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