#220542#220542

#220542 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.7% C 0.104 H 298.7°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#220542
RGBrgb(34, 5, 66)
HSLhsl(269, 86%, 14%)
HSVhsv(269, 92%, 26%)
CMYKcmyk(48.5%, 92.4%, 0%, 74.1%)
CIE-LABlab(7.60, 28.94, -31.99)
CIE-LCHlch(7.60, 43.14, 312.14°)
OKLaboklab(21.68% 0.0502 -0.0916)
OKLCHoklch(21.68% 0.104 298.7)
XYZxyz(1.6971, 0.8419, 5.2263)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220542 #254205
analogous
#050642 #220542 #410542
triadic
#220542 #422205 #054222
tetradic
#220542 #420506 #254205 #054241
square
#220542 #420506 #254205 #054241
split-complementary
#220542 #424105 #064205
monochromatic
#0F021C #0F021C #220542 #3F097B #5D0EB4

Accessibility & contrast

On white

17.97
#220542 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#220542 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220542
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220542#FFFFFF#000000##FFFFFF
##2205421.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001744
Deuteranopia (green-blind)
#001641
Tritanopia (blue-blind)
#1A1624
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #220542;
/* rgb */ color: rgb(34, 5, 66);
/* oklch */ color: oklch(21.7% 0.104 298.7);
Tailwind
colors: {
  custom: {
    50: '#624977',
    500: '#220542',
    950: '#000000',
  },
}
SCSS
$custom: #220542;
$custom-light: #624977;
$custom-dark: #000000;
JSON
{
  "hex": "#220542",
  "rgb": {
    "r": 34,
    "g": 5,
    "b": 66
  },
  "hsl": {
    "h": 268.525,
    "s": 85.915,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21684,
    "c": 0.10447,
    "h": 298.7
  },
  "luminance": 0.00842
}

Semantic roles & 50–950 ramp

primary
#220542
secondary
#548220
accent
#FC2C99
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#050109
muted
#7A777B

Preview Lab

Preview with #220542

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

Preview Lab → · Contrast checker → · Palette generator →

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