#220740#220740

#220740 is a very dark, moderate violet. Relative luminance 0.009; OKLCH L 21.7% C 0.099 H 299.3°. Best body text is #FFFFFF at 17.91:1 contrast (WCAG AA passes).

Color values

HEX#220740
RGBrgb(34, 7, 64)
HSLhsl(268, 80%, 14%)
HSVhsv(268, 89%, 25%)
CMYKcmyk(46.9%, 89.1%, 0%, 74.9%)
CIE-LABlab(7.79, 27.21, -30.26)
CIE-LCHlch(7.79, 40.70, 311.96°)
OKLaboklab(21.75% 0.0487 -0.0866)
OKLCHoklch(21.75% 0.099 299.3)
XYZxyz(1.6608, 0.8622, 4.9284)
Luminance0.0086 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220740 #254007
analogous
#070940 #220740 #3F0740
triadic
#220740 #402207 #074022
tetradic
#220740 #400709 #254007 #07403F
square
#220740 #400709 #254007 #07403F
split-complementary
#220740 #403F07 #094007
monochromatic
#0F031C #0F031C #220740 #3F0D77 #5D13AE

Accessibility & contrast

On white

17.91
#220740 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#220740 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220740
17.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220740#FFFFFF#000000##FFFFFF
##2207401.0017.911.1717.91
#FFFFFF17.911.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001742
Deuteranopia (green-blind)
#00173F
Tritanopia (blue-blind)
#1B1623
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #220740;
/* rgb */ color: rgb(34, 7, 64);
/* oklch */ color: oklch(21.7% 0.099 299.3);
Tailwind
colors: {
  custom: {
    50: '#614a75',
    500: '#220740',
    950: '#000000',
  },
}
SCSS
$custom: #220740;
$custom-light: #614a75;
$custom-dark: #000000;
JSON
{
  "hex": "#220740",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 64
  },
  "hsl": {
    "h": 268.421,
    "s": 80.282,
    "l": 13.922
  },
  "oklch": {
    "l": 0.21748,
    "c": 0.09931,
    "h": 299.3
  },
  "luminance": 0.00862
}

Semantic roles & 50–950 ramp

primary
#220740
secondary
#547F24
accent
#F73199
background
#F5F4F7
surface
#EAE7ED
border
#C6C3C8
text
#050108
muted
#79777B

Preview Lab

Preview with #220740

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

Preview Lab → · Contrast checker → · Palette generator →

#220740 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva