#220D40#220D40

#220D40 is a very dark, moderate violet. Relative luminance 0.010; OKLCH L 22.6% C 0.091 H 297.4°. Best body text is #FFFFFF at 17.51:1 contrast (WCAG AA passes).

Color values

HEX#220D40
RGBrgb(34, 13, 64)
HSLhsl(265, 66%, 15%)
HSVhsv(265, 80%, 25%)
CMYKcmyk(46.9%, 79.7%, 0%, 74.9%)
CIE-LABlab(8.98, 23.84, -28.32)
CIE-LCHlch(8.98, 37.02, 310.09°)
OKLaboklab(22.59% 0.0419 -0.0809)
OKLCHoklch(22.59% 0.091 297.4)
XYZxyz(1.7288, 0.9981, 4.9511)
Luminance0.0100 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220D40 #2B400D
analogous
#0D1140 #220D40 #3C0D40
triadic
#220D40 #40220D #0D4022
tetradic
#220D40 #400D11 #2B400D #0D403C
square
#220D40 #400D11 #2B400D #0D403C
split-complementary
#220D40 #403C0D #11400D
monochromatic
#0E0519 #0E0519 #220D40 #3D1773 #5822A6

Accessibility & contrast

On white

17.51
#220D40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.20
#220D40 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220D40
17.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220D40#FFFFFF#000000##FFFFFF
##220D401.0017.511.2017.51
#FFFFFF17.511.0021.001.00
#0000001.2021.001.0021.00
##FFFFFF17.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001A42
Deuteranopia (green-blind)
#00193F
Tritanopia (blue-blind)
#1A1A25
Achromatopsia (no color)
#191919

Design tokens & code

CSS
--color: #220d40;
/* rgb */ color: rgb(34, 13, 64);
/* oklch */ color: oklch(22.6% 0.091 297.4);
Tailwind
colors: {
  custom: {
    50: '#614d75',
    500: '#220d40',
    950: '#000000',
  },
}
SCSS
$custom: #220d40;
$custom-light: #614d75;
$custom-dark: #000000;
JSON
{
  "hex": "#220d40",
  "rgb": {
    "r": 34,
    "g": 13,
    "b": 64
  },
  "hsl": {
    "h": 264.706,
    "s": 66.234,
    "l": 15.098
  },
  "oklch": {
    "l": 0.22586,
    "c": 0.09113,
    "h": 297.4
  },
  "luminance": 0.00998
}

Semantic roles & 50–950 ramp

primary
#220D40
secondary
#5B7C2D
accent
#E93FA3
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #220D40

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

Preview Lab → · Contrast checker → · Palette generator →

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