#220C2F#220C2F

#220C2F is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.070 H 310.8°. Best body text is #FFFFFF at 18.08:1 contrast (WCAG AA passes).

Color values

HEX#220C2F
RGBrgb(34, 12, 47)
HSLhsl(278, 59%, 12%)
HSVhsv(278, 74%, 18%)
CMYKcmyk(27.7%, 74.5%, 0%, 81.6%)
CIE-LABlab(7.30, 19.27, -18.69)
CIE-LCHlch(7.30, 26.84, 315.87°)
OKLaboklab(20.9% 0.0454 -0.0527)
OKLCHoklch(20.9% 0.07 310.8)
XYZxyz(1.3042, 0.8083, 2.7761)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C2F #192F0C
analogous
#110C2F #220C2F #2F0C2B
triadic
#220C2F #2F220C #0C2F22
tetradic
#220C2F #2F110C #192F0C #0C2B2F
square
#220C2F #2F110C #192F0C #0C2B2F
split-complementary
#220C2F #2B2F0C #0C2F11
monochromatic
#120618 #120618 #220C2F #451860 #692591

Accessibility & contrast

On white

18.08
#220C2F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220C2F
18.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C2F#FFFFFF#000000##FFFFFF
##220C2F1.0018.081.1618.08
#FFFFFF18.081.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#021530
Deuteranopia (green-blind)
#08172E
Tritanopia (blue-blind)
#20131B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #220c2f;
/* rgb */ color: rgb(34, 12, 47);
/* oklch */ color: oklch(20.9% 0.070 310.8);
Tailwind
colors: {
  custom: {
    50: '#5e4c68',
    500: '#220c2f',
    950: '#000000',
  },
}
SCSS
$custom: #220c2f;
$custom-light: #5e4c68;
$custom-dark: #000000;
JSON
{
  "hex": "#220c2f",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 47
  },
  "hsl": {
    "h": 277.714,
    "s": 59.322,
    "l": 11.569
  },
  "oklch": {
    "l": 0.20901,
    "c": 0.06961,
    "h": 310.8
  },
  "luminance": 0.00808
}

Semantic roles & 50–950 ramp

primary
#220C2F
secondary
#436B2C
accent
#E34580
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #220C2F

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

Preview Lab → · Contrast checker → · Palette generator →

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