#221040#221040

#221040 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.1% C 0.087 H 296.1°. Best body text is #FFFFFF at 17.27:1 contrast (WCAG AA passes).

Color values

HEX#221040
RGBrgb(34, 16, 64)
HSLhsl(263, 60%, 16%)
HSVhsv(263, 75%, 25%)
CMYKcmyk(46.9%, 75%, 0%, 74.9%)
CIE-LABlab(9.65, 21.98, -27.23)
CIE-LCHlch(9.65, 35.00, 308.91°)
OKLaboklab(23.07% 0.0382 -0.0777)
OKLCHoklch(23.07% 0.087 296.1)
XYZxyz(1.7701, 1.0808, 4.9648)
Luminance0.0108 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221040 #2E4010
analogous
#101640 #221040 #3A1040
triadic
#221040 #402210 #104022
tetradic
#221040 #401016 #2E4010 #10403A
square
#221040 #401016 #2E4010 #10403A
split-complementary
#221040 #403A10 #164010
monochromatic
#0D0618 #0D0618 #221040 #3C1C71 #5628A2

Accessibility & contrast

On white

17.27
#221040 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.22
#221040 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221040
17.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221040#FFFFFF#000000##FFFFFF
##2210401.0017.271.2217.27
#FFFFFF17.271.0021.001.00
#0000001.2221.001.0021.00
##FFFFFF17.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#1A1B26
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #221040;
/* rgb */ color: rgb(34, 16, 64);
/* oklch */ color: oklch(23.1% 0.087 296.1);
Tailwind
colors: {
  custom: {
    50: '#604f75',
    500: '#221040',
    950: '#000000',
  },
}
SCSS
$custom: #221040;
$custom-light: #604f75;
$custom-dark: #000000;
JSON
{
  "hex": "#221040",
  "rgb": {
    "r": 34,
    "g": 16,
    "b": 64
  },
  "hsl": {
    "h": 262.5,
    "s": 60,
    "l": 15.686
  },
  "oklch": {
    "l": 0.23067,
    "c": 0.08659,
    "h": 296.1
  },
  "luminance": 0.01081
}

Semantic roles & 50–950 ramp

primary
#221040
secondary
#5F7A32
accent
#E345A8
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #221040

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

Preview Lab → · Contrast checker → · Palette generator →

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