#220C31#220C31

#220C31 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.072 H 308.9°. Best body text is #FFFFFF at 18.03:1 contrast (WCAG AA passes).

Color values

HEX#220C31
RGBrgb(34, 12, 49)
HSLhsl(276, 61%, 12%)
HSVhsv(276, 76%, 19%)
CMYKcmyk(30.6%, 75.5%, 0%, 80.8%)
CIE-LABlab(7.45, 19.87, -19.93)
CIE-LCHlch(7.45, 28.14, 314.91°)
OKLaboklab(21.07% 0.0454 -0.0563)
OKLCHoklch(21.07% 0.072 308.9)
XYZxyz(1.3454, 0.8248, 2.9935)
Luminance0.0083 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C31 #1B310C
analogous
#100C31 #220C31 #310C2E
triadic
#220C31 #31220C #0C3122
tetradic
#220C31 #31100C #1B310C #0C2E31
square
#220C31 #31100C #1B310C #0C2E31
split-complementary
#220C31 #2E310C #0C3110
monochromatic
#110619 #110619 #220C31 #441862 #662493

Accessibility & contrast

On white

18.03
#220C31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#220C31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C31
18.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C31#FFFFFF#000000##FFFFFF
##220C311.0018.031.1718.03
#FFFFFF18.031.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF18.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001632
Deuteranopia (green-blind)
#071730
Tritanopia (blue-blind)
#20131D
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #220c31;
/* rgb */ color: rgb(34, 12, 49);
/* oklch */ color: oklch(21.1% 0.072 308.9);
Tailwind
colors: {
  custom: {
    50: '#5f4c69',
    500: '#220c31',
    950: '#000000',
  },
}
SCSS
$custom: #220c31;
$custom-light: #5f4c69;
$custom-dark: #000000;
JSON
{
  "hex": "#220c31",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 49
  },
  "hsl": {
    "h": 275.676,
    "s": 60.656,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21066,
    "c": 0.07232,
    "h": 308.9
  },
  "luminance": 0.00825
}

Semantic roles & 50–950 ramp

primary
#220C31
secondary
#466D2C
accent
#E44485
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #220C31

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

Preview Lab → · Contrast checker → · Palette generator →

#220C31 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva