#220B40#220B40

#220B40 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 22.3% C 0.094 H 298.1°. Best body text is #FFFFFF at 17.65:1 contrast (WCAG AA passes).

Color values

HEX#220B40
RGBrgb(34, 11, 64)
HSLhsl(266, 71%, 15%)
HSVhsv(266, 83%, 25%)
CMYKcmyk(46.9%, 82.8%, 0%, 74.9%)
CIE-LABlab(8.56, 24.99, -28.99)
CIE-LCHlch(8.56, 38.28, 310.76°)
OKLaboklab(22.29% 0.0442 -0.0829)
OKLCHoklch(22.29% 0.094 298.1)
XYZxyz(1.7045, 0.9496, 4.9430)
Luminance0.0095 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220B40 #29400B
analogous
#0B0E40 #220B40 #3D0B40
triadic
#220B40 #40220B #0B4022
tetradic
#220B40 #400B0E #29400B #0B403D
square
#220B40 #400B0E #29400B #0B403D
split-complementary
#220B40 #403D0B #0E400B
monochromatic
#0E041A #0E041A #220B40 #3E1474 #591DA8

Accessibility & contrast

On white

17.65
#220B40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220B40
17.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220B40#FFFFFF#000000##FFFFFF
##220B401.0017.651.1917.65
#FFFFFF17.651.0021.001.00
#0000001.1921.001.0021.00
##FFFFFF17.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001942
Deuteranopia (green-blind)
#00183F
Tritanopia (blue-blind)
#1B1924
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #220b40;
/* rgb */ color: rgb(34, 11, 64);
/* oklch */ color: oklch(22.3% 0.094 298.1);
Tailwind
colors: {
  custom: {
    50: '#614c75',
    500: '#220b40',
    950: '#000000',
  },
}
SCSS
$custom: #220b40;
$custom-light: #614c75;
$custom-dark: #000000;
JSON
{
  "hex": "#220b40",
  "rgb": {
    "r": 34,
    "g": 11,
    "b": 64
  },
  "hsl": {
    "h": 266.038,
    "s": 70.667,
    "l": 14.706
  },
  "oklch": {
    "l": 0.22294,
    "c": 0.09394,
    "h": 298.1
  },
  "luminance": 0.0095
}

Semantic roles & 50–950 ramp

primary
#220B40
secondary
#597D2A
accent
#ED3AA0
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #220B40

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

Preview Lab → · Contrast checker → · Palette generator →

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