#220C3E#220C3E

#220C3E is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.2% C 0.090 H 299.0°. Best body text is #FFFFFF at 17.64:1 contrast (WCAG AA passes).

Color values

HEX#220C3E
RGBrgb(34, 12, 62)
HSLhsl(266, 68%, 15%)
HSVhsv(266, 81%, 24%)
CMYKcmyk(45.2%, 80.6%, 0%, 75.7%)
CIE-LABlab(8.57, 23.81, -27.55)
CIE-LCHlch(8.57, 36.41, 310.84°)
OKLaboklab(22.24% 0.0435 -0.0786)
OKLCHoklch(22.24% 0.09 299)
XYZxyz(1.6604, 0.9508, 4.6525)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C3E #283E0C
analogous
#0C0F3E #220C3E #3B0C3E
triadic
#220C3E #3E220C #0C3E22
tetradic
#220C3E #3E0C0F #283E0C #0C3E3B
square
#220C3E #3E0C0F #283E0C #0C3E3B
split-complementary
#220C3E #3E3B0C #0F3E0C
monochromatic
#0E051A #0E051A #220C3E #3E1671 #5A20A5

Accessibility & contrast

On white

17.64
#220C3E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.19
#220C3E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C3E
17.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C3E#FFFFFF#000000##FFFFFF
##220C3E1.0017.641.1917.64
#FFFFFF17.641.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00193F
Deuteranopia (green-blind)
#00183D
Tritanopia (blue-blind)
#1B1824
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #220c3e;
/* rgb */ color: rgb(34, 12, 62);
/* oklch */ color: oklch(22.2% 0.090 299.0);
Tailwind
colors: {
  custom: {
    50: '#604d74',
    500: '#220c3e',
    950: '#000000',
  },
}
SCSS
$custom: #220c3e;
$custom-light: #604d74;
$custom-dark: #000000;
JSON
{
  "hex": "#220c3e",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 62
  },
  "hsl": {
    "h": 266.4,
    "s": 67.568,
    "l": 14.51
  },
  "oklch": {
    "l": 0.22241,
    "c": 0.08989,
    "h": 299
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#220C3E
secondary
#587A2C
accent
#EA3D9E
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #220C3E

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

Preview Lab → · Contrast checker → · Palette generator →

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