#220C48#220C48

#220C48 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 23.3% C 0.103 H 293.4°. Best body text is #FFFFFF at 17.30:1 contrast (WCAG AA passes).

Color values

HEX#220C48
RGBrgb(34, 12, 72)
HSLhsl(262, 71%, 16%)
HSVhsv(262, 83%, 28%)
CMYKcmyk(52.8%, 83.3%, 0%, 71.8%)
CIE-LABlab(9.57, 26.92, -33.00)
CIE-LCHlch(9.57, 42.58, 309.21°)
OKLaboklab(23.25% 0.0409 -0.0946)
OKLCHoklch(23.25% 0.103 293.4)
XYZxyz(1.9605, 1.0708, 6.2330)
Luminance0.0107 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220C48 #32480C
analogous
#0C1448 #220C48 #400C48
triadic
#220C48 #48220C #0C4822
tetradic
#220C48 #480C14 #32480C #0C4840
square
#220C48 #480C14 #32480C #0C4840
split-complementary
#220C48 #48400C #14480C
monochromatic
#0C041A #0C041A #220C48 #3B157C #541DB1

Accessibility & contrast

On white

17.30
#220C48 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.21
#220C48 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220C48
17.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220C48#FFFFFF#000000##FFFFFF
##220C481.0017.301.2117.30
#FFFFFF17.301.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B4A
Deuteranopia (green-blind)
#001A47
Tritanopia (blue-blind)
#161C29
Achromatopsia (no color)
#1B1B1B

Design tokens & code

CSS
--color: #220c48;
/* rgb */ color: rgb(34, 12, 72);
/* oklch */ color: oklch(23.3% 0.103 293.4);
Tailwind
colors: {
  custom: {
    50: '#624d7c',
    500: '#220c48',
    950: '#000000',
  },
}
SCSS
$custom: #220c48;
$custom-light: #624d7c;
$custom-dark: #000000;
JSON
{
  "hex": "#220c48",
  "rgb": {
    "r": 34,
    "g": 12,
    "b": 72
  },
  "hsl": {
    "h": 262,
    "s": 71.429,
    "l": 16.471
  },
  "oklch": {
    "l": 0.23251,
    "c": 0.1031,
    "h": 293.4
  },
  "luminance": 0.01071
}

Semantic roles & 50–950 ramp

primary
#220C48
secondary
#64842C
accent
#EE3AAC
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#050109
muted
#7A777B

Preview Lab

Preview with #220C48

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

Preview Lab → · Contrast checker → · Palette generator →

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