#220C51#220C51

#220C51 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.115 H 289.3°. Best body text is #FFFFFF at 16.94:1 contrast (WCAG AA passes).

Color values

HEX#220C51
RGBrgb(34, 12, 81)
HSLhsl(259, 74%, 18%)
HSVhsv(259, 85%, 32%)
CMYKcmyk(58%, 85.2%, 0%, 68.2%)
CIE-LABlab(10.54, 29.74, -37.65)
CIE-LCHlch(10.54, 47.97, 308.31°)
OKLaboklab(24.22% 0.038 -0.1083)
OKLCHoklch(24.22% 0.115 289.3)
XYZxyz(2.2759, 1.1970, 7.8941)
Luminance0.0120 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C51 #3B510C
analogous
#0C1851 #220C51 #440C51
triadic
#220C51 #51220C #0C5122
tetradic
#220C51 #510C18 #3B510C #0C5144
square
#220C51 #510C18 #3B510C #0C5144
split-complementary
#220C51 #51440C #18510C
monochromatic
#0B041B #0C041C #220C51 #381486 #4F1CBC

Accessibility & contrast

On white

16.94
#220C51 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.24
#220C51 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C51
16.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C51#FFFFFF#000000##FFFFFF
##220C511.0016.941.2416.94
#FFFFFF16.941.0021.001.00
#0000001.2421.001.0021.00
##FFFFFF16.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E53
Deuteranopia (green-blind)
#001B50
Tritanopia (blue-blind)
#10202E
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #220c51;
/* rgb */ color: rgb(34, 12, 81);
/* oklch */ color: oklch(24.2% 0.115 289.3);
Tailwind
colors: {
  custom: {
    50: '#644e83',
    500: '#220c51',
    950: '#000000',
  },
}
SCSS
$custom: #220c51;
$custom-light: #644e83;
$custom-dark: #000000;
JSON
{
  "hex": "#220c51",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 81
  },
  "hsl": {
    "h": 259.13,
    "s": 74.194,
    "l": 18.235
  },
  "oklch": {
    "l": 0.24222,
    "c": 0.11473,
    "h": 289.3
  },
  "luminance": 0.01197
}

Semantic roles & 50–950 ramp

primary
#220C51
secondary
#6E8C2C
accent
#F137B6
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #220C51

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

Preview Lab → · Contrast checker → · Palette generator →

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