#220F31#220F31

#220F31 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.6% C 0.067 H 307.5°. Best body text is #FFFFFF at 17.79:1 contrast (WCAG AA passes).

Color values

HEX#220F31
RGBrgb(34, 15, 49)
HSLhsl(274, 53%, 13%)
HSVhsv(274, 69%, 19%)
CMYKcmyk(30.6%, 69.4%, 0%, 80.8%)
CIE-LABlab(8.16, 17.98, -18.80)
CIE-LCHlch(8.16, 26.01, 313.73°)
OKLaboklab(21.59% 0.0407 -0.0529)
OKLCHoklch(21.59% 0.067 307.5)
XYZxyz(1.3848, 0.9035, 3.0066)
Luminance0.0090 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220F31 #1E310F
analogous
#110F31 #220F31 #310F2F
triadic
#220F31 #31220F #0F3122
tetradic
#220F31 #31110F #1E310F #0F2F31
square
#220F31 #31110F #1E310F #0F2F31
split-complementary
#220F31 #2F310F #0F3111
monochromatic
#100717 #100717 #220F31 #431D60 #632C8F

Accessibility & contrast

On white

17.79
#220F31 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.18
#220F31 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220F31
17.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220F31#FFFFFF#000000##FFFFFF
##220F311.0017.791.1817.79
#FFFFFF17.791.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#041732
Deuteranopia (green-blind)
#0A1830
Tritanopia (blue-blind)
#20151E
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #220f31;
/* rgb */ color: rgb(34, 15, 49);
/* oklch */ color: oklch(21.6% 0.067 307.5);
Tailwind
colors: {
  custom: {
    50: '#5e4e69',
    500: '#220f31',
    950: '#000000',
  },
}
SCSS
$custom: #220f31;
$custom-light: #5e4e69;
$custom-dark: #000000;
JSON
{
  "hex": "#220f31",
  "rgb": {
    "r": 34,
    "g": 15,
    "b": 49
  },
  "hsl": {
    "h": 273.529,
    "s": 53.125,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21592,
    "c": 0.06675,
    "h": 307.5
  },
  "luminance": 0.00903
}

Semantic roles & 50–950 ramp

primary
#220F31
secondary
#4A6B31
accent
#DD4B8B
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #220F31

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

Preview Lab → · Contrast checker → · Palette generator →

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