#220C2E#220C2E

#220C2E is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.8% C 0.068 H 311.8°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#220C2E
RGBrgb(34, 12, 46)
HSLhsl(279, 59%, 11%)
HSVhsv(279, 74%, 18%)
CMYKcmyk(26.1%, 73.9%, 0%, 82%)
CIE-LABlab(7.23, 18.96, -18.06)
CIE-LCHlch(7.23, 26.19, 316.39°)
OKLaboklab(20.82% 0.0455 -0.0509)
OKLCHoklch(20.82% 0.068 311.8)
XYZxyz(1.2842, 0.8003, 2.6711)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C2E #182E0C
analogous
#110C2E #220C2E #2E0C29
triadic
#220C2E #2E220C #0C2E22
tetradic
#220C2E #2E110C #182E0C #0C292E
square
#220C2E #2E110C #182E0C #0C292E
split-complementary
#220C2E #292E0C #0C2E11
monochromatic
#120618 #120618 #220C2E #46195F #6A258F

Accessibility & contrast

On white

18.10
#220C2E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220C2E
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C2E#FFFFFF#000000##FFFFFF
##220C2E1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#02152F
Deuteranopia (green-blind)
#09162D
Tritanopia (blue-blind)
#21121B
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #220c2e;
/* rgb */ color: rgb(34, 12, 46);
/* oklch */ color: oklch(20.8% 0.068 311.8);
Tailwind
colors: {
  custom: {
    50: '#5e4c67',
    500: '#220c2e',
    950: '#000000',
  },
}
SCSS
$custom: #220c2e;
$custom-light: #5e4c67;
$custom-dark: #000000;
JSON
{
  "hex": "#220c2e",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 46
  },
  "hsl": {
    "h": 278.824,
    "s": 58.621,
    "l": 11.373
  },
  "oklch": {
    "l": 0.20821,
    "c": 0.06825,
    "h": 311.8
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#220C2E
secondary
#426A2C
accent
#E2467D
background
#F5F4F6
surface
#E9E7EB
border
#C5C3C6
text
#040106
muted
#79777A

Preview Lab

Preview with #220C2E

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

Preview Lab → · Contrast checker → · Palette generator →

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