#220738#220738

#220738 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 20.9% C 0.090 H 304.8°. Best body text is #FFFFFF at 18.17:1 contrast (WCAG AA passes).

Color values

HEX#220738
RGBrgb(34, 7, 56)
HSLhsl(273, 78%, 12%)
HSVhsv(273, 88%, 22%)
CMYKcmyk(39.3%, 87.5%, 0%, 78%)
CIE-LABlab(7.02, 24.75, -25.74)
CIE-LCHlch(7.02, 35.71, 313.87°)
OKLaboklab(20.94% 0.0512 -0.0735)
OKLCHoklch(20.94% 0.09 304.8)
XYZxyz(1.4493, 0.7776, 3.8143)
Luminance0.0078 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220738 #1D3807
analogous
#090738 #220738 #380736
triadic
#220738 #382207 #073822
tetradic
#220738 #380907 #1D3807 #073638
square
#220738 #380907 #1D3807 #073638
split-complementary
#220738 #363807 #073809
monochromatic
#11031B #11031B #220738 #430E6E #6415A5

Accessibility & contrast

On white

18.17
#220738 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#220738 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #220738
18.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220738#FFFFFF#000000##FFFFFF
##2207381.0018.171.1618.17
#FFFFFF18.171.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001539
Deuteranopia (green-blind)
#001637
Tritanopia (blue-blind)
#1E131F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #220738;
/* rgb */ color: rgb(34, 7, 56);
/* oklch */ color: oklch(20.9% 0.090 304.8);
Tailwind
colors: {
  custom: {
    50: '#60496f',
    500: '#220738',
    950: '#000000',
  },
}
SCSS
$custom: #220738;
$custom-light: #60496f;
$custom-dark: #000000;
JSON
{
  "hex": "#220738",
  "rgb": {
    "r": 34,
    "g": 7,
    "b": 56
  },
  "hsl": {
    "h": 273.061,
    "s": 77.778,
    "l": 12.353
  },
  "oklch": {
    "l": 0.20935,
    "c": 0.08957,
    "h": 304.8
  },
  "luminance": 0.00778
}

Semantic roles & 50–950 ramp

primary
#220738
secondary
#497823
accent
#F4348A
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #220738

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

Preview Lab → · Contrast checker → · Palette generator →

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