#220C38#220C38

#220C38 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.082 H 303.1°. Best body text is #FFFFFF at 17.83:1 contrast (WCAG AA passes).

Color values

HEX#220C38
RGBrgb(34, 12, 56)
HSLhsl(270, 65%, 13%)
HSVhsv(270, 79%, 22%)
CMYKcmyk(39.3%, 78.6%, 0%, 78%)
CIE-LABlab(8.03, 21.99, -24.12)
CIE-LCHlch(8.03, 32.64, 312.35°)
OKLaboklab(21.68% 0.0446 -0.0686)
OKLCHoklch(21.68% 0.082 303.1)
XYZxyz(1.5048, 0.8885, 3.8328)
Luminance0.0089 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C38 #22380C
analogous
#0C0C38 #220C38 #380C38
triadic
#220C38 #38220C #0C3822
tetradic
#220C38 #380C0C #22380C #0C3838
square
#220C38 #380C0C #22380C #0C3838
split-complementary
#220C38 #38380C #0C380C
monochromatic
#0F0519 #0F0519 #220C38 #41176A #5F229D

Accessibility & contrast

On white

17.83
#220C38 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220C38
17.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C38#FFFFFF#000000##FFFFFF
##220C381.0017.831.1817.83
#FFFFFF17.831.0021.001.00
#0000001.1821.001.0021.00
##FFFFFF17.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001739
Deuteranopia (green-blind)
#001737
Tritanopia (blue-blind)
#1E1620
Achromatopsia (no color)
#181818

Design tokens & code

CSS
--color: #220c38;
/* rgb */ color: rgb(34, 12, 56);
/* oklch */ color: oklch(21.7% 0.082 303.1);
Tailwind
colors: {
  custom: {
    50: '#604c6f',
    500: '#220c38',
    950: '#000000',
  },
}
SCSS
$custom: #220c38;
$custom-light: #604c6f;
$custom-dark: #000000;
JSON
{
  "hex": "#220c38",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 56
  },
  "hsl": {
    "h": 270,
    "s": 64.706,
    "l": 13.333
  },
  "oklch": {
    "l": 0.21677,
    "c": 0.08182,
    "h": 303.1
  },
  "luminance": 0.00889
}

Semantic roles & 50–950 ramp

primary
#220C38
secondary
#50742C
accent
#E84094
background
#F5F4F6
surface
#E9E7EC
border
#C5C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #220C38

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

Preview Lab → · Contrast checker → · Palette generator →

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