#220A42#220A42

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

Color values

HEX#220A42
RGBrgb(34, 10, 66)
HSLhsl(266, 74%, 15%)
HSVhsv(266, 85%, 26%)
CMYKcmyk(48.5%, 84.8%, 0%, 74.1%)
CIE-LABlab(8.57, 26.15, -30.40)
CIE-LCHlch(8.57, 40.10, 310.70°)
OKLaboklab(22.36% 0.0447 -0.087)
OKLCHoklch(22.36% 0.098 297.2)
XYZxyz(1.7513, 0.9505, 5.2444)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220A42 #2A420A
analogous
#0A0E42 #220A42 #3E0A42
triadic
#220A42 #42220A #0A4222
tetradic
#220A42 #420A0E #2A420A #0A423E
square
#220A42 #420A0E #2A420A #0A423E
split-complementary
#220A42 #423E0A #0E420A
monochromatic
#0E041B #0E041B #220A42 #3D1277 #591AAC

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##220A42#FFFFFF#000000##FFFFFF
##220A421.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)
#001944
Deuteranopia (green-blind)
#001841
Tritanopia (blue-blind)
#1A1925
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #220a42;
/* rgb */ color: rgb(34, 10, 66);
/* oklch */ color: oklch(22.4% 0.098 297.2);
Tailwind
colors: {
  custom: {
    50: '#614c77',
    500: '#220a42',
    950: '#000000',
  },
}
SCSS
$custom: #220a42;
$custom-light: #614c77;
$custom-dark: #000000;
JSON
{
  "hex": "#220a42",
  "rgb": {
    "r": 34,
    "g": 10,
    "b": 66
  },
  "hsl": {
    "h": 265.714,
    "s": 73.684,
    "l": 14.902
  },
  "oklch": {
    "l": 0.22361,
    "c": 0.09783,
    "h": 297.2
  },
  "luminance": 0.00951
}

Semantic roles & 50–950 ramp

primary
#220A42
secondary
#5A7F29
accent
#F037A1
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050109
muted
#79777B

Preview Lab

Preview with #220A42

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

Preview Lab → · Contrast checker → · Palette generator →

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