#220A31#220A31

#220A31 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.7% C 0.076 H 309.6°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#220A31
RGBrgb(34, 10, 49)
HSLhsl(277, 66%, 12%)
HSVhsv(277, 80%, 19%)
CMYKcmyk(30.6%, 79.6%, 0%, 80.8%)
CIE-LABlab(7.04, 20.97, -20.59)
CIE-LCHlch(7.04, 29.39, 315.52°)
OKLaboklab(20.75% 0.0483 -0.0584)
OKLCHoklch(20.75% 0.076 309.6)
XYZxyz(1.3225, 0.7789, 2.9858)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220A31 #19310A
analogous
#0F0A31 #220A31 #310A2D
triadic
#220A31 #31220A #0A3122
tetradic
#220A31 #310F0A #19310A #0A2D31
square
#220A31 #310F0A #19310A #0A2D31
split-complementary
#220A31 #2D310A #0A310F
monochromatic
#120519 #120519 #220A31 #451464 #691F97

Accessibility & contrast

On white

18.17
#220A31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#220A31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220A31
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220A31#FFFFFF#000000##FFFFFF
##220A311.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001532
Deuteranopia (green-blind)
#051630
Tritanopia (blue-blind)
#20121C
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #220a31;
/* rgb */ color: rgb(34, 10, 49);
/* oklch */ color: oklch(20.7% 0.076 309.6);
Tailwind
colors: {
  custom: {
    50: '#5f4b69',
    500: '#220a31',
    950: '#000000',
  },
}
SCSS
$custom: #220a31;
$custom-light: #5f4b69;
$custom-dark: #000000;
JSON
{
  "hex": "#220a31",
  "rgb": {
    "r": 34,
    "g": 10,
    "b": 49
  },
  "hsl": {
    "h": 276.923,
    "s": 66.102,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20747,
    "c": 0.07579,
    "h": 309.6
  },
  "luminance": 0.00779
}

Semantic roles & 50–950 ramp

primary
#220A31
secondary
#436E29
accent
#E93F80
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#050106
muted
#79777A

Preview Lab

Preview with #220A31

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

Preview Lab → · Contrast checker → · Palette generator →

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