#220F40#220F40

#220F40 is a very dark, moderate violet. Relative luminance 0.011; OKLCH L 22.9% C 0.088 H 296.6°. Best body text is #FFFFFF at 17.35:1 contrast (WCAG AA passes).

Color values

HEX#220F40
RGBrgb(34, 15, 64)
HSLhsl(263, 62%, 15%)
HSVhsv(263, 77%, 25%)
CMYKcmyk(46.9%, 76.6%, 0%, 74.9%)
CIE-LABlab(9.42, 22.62, -27.61)
CIE-LCHlch(9.42, 35.69, 309.33°)
OKLaboklab(22.9% 0.0394 -0.0788)
OKLCHoklch(22.9% 0.088 296.6)
XYZxyz(1.7557, 1.0519, 4.9600)
Luminance0.0105 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220F40 #2D400F
analogous
#0F1540 #220F40 #3A0F40
triadic
#220F40 #40220F #0F4022
tetradic
#220F40 #400F15 #2D400F #0F403A
square
#220F40 #400F15 #2D400F #0F403A
split-complementary
#220F40 #403A0F #15400F
monochromatic
#0D0619 #0D0619 #220F40 #3C1B72 #5726A3

Accessibility & contrast

On white

17.35
#220F40 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220F40
17.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220F40#FFFFFF#000000##FFFFFF
##220F401.0017.351.2117.35
#FFFFFF17.351.0021.001.00
#0000001.2121.001.0021.00
##FFFFFF17.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001B41
Deuteranopia (green-blind)
#001A3F
Tritanopia (blue-blind)
#1A1B26
Achromatopsia (no color)
#1A1A1A

Design tokens & code

CSS
--color: #220f40;
/* rgb */ color: rgb(34, 15, 64);
/* oklch */ color: oklch(22.9% 0.088 296.6);
Tailwind
colors: {
  custom: {
    50: '#604f75',
    500: '#220f40',
    950: '#000000',
  },
}
SCSS
$custom: #220f40;
$custom-light: #604f75;
$custom-dark: #000000;
JSON
{
  "hex": "#220f40",
  "rgb": {
    "r": 34,
    "g": 15,
    "b": 64
  },
  "hsl": {
    "h": 263.265,
    "s": 62.025,
    "l": 15.49
  },
  "oklch": {
    "l": 0.22901,
    "c": 0.08814,
    "h": 296.6
  },
  "luminance": 0.01052
}

Semantic roles & 50–950 ramp

primary
#220F40
secondary
#5E7A30
accent
#E543A6
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050208
muted
#79787B

Preview Lab

Preview with #220F40

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

Preview Lab → · Contrast checker → · Palette generator →

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