#220838#220838

#220838 is a very dark, moderate violet. Relative luminance 0.008; OKLCH L 21.1% C 0.088 H 304.5°. Best body text is #FFFFFF at 18.11:1 contrast (WCAG AA passes).

Color values

HEX#220838
RGBrgb(34, 8, 56)
HSLhsl(273, 75%, 13%)
HSVhsv(273, 86%, 22%)
CMYKcmyk(39.3%, 85.7%, 0%, 78%)
CIE-LABlab(7.22, 24.21, -25.43)
CIE-LCHlch(7.22, 35.11, 313.60°)
OKLaboklab(21.09% 0.0498 -0.0725)
OKLCHoklch(21.09% 0.088 304.5)
XYZxyz(1.4602, 0.7993, 3.8180)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#220838 #1E3808
analogous
#0A0838 #220838 #380836
triadic
#220838 #382208 #083822
tetradic
#220838 #380A08 #1E3808 #083638
square
#220838 #380A08 #1E3808 #083638
split-complementary
#220838 #363808 #08380A
monochromatic
#10041B #10041B #220838 #43106E #6317A3

Accessibility & contrast

On white

18.11
#220838 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #220838
18.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##220838#FFFFFF#000000##FFFFFF
##2208381.0018.111.1618.11
#FFFFFF18.111.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #220838;
/* rgb */ color: rgb(34, 8, 56);
/* oklch */ color: oklch(21.1% 0.088 304.5);
Tailwind
colors: {
  custom: {
    50: '#604a6f',
    500: '#220838',
    950: '#000000',
  },
}
SCSS
$custom: #220838;
$custom-light: #604a6f;
$custom-dark: #000000;
JSON
{
  "hex": "#220838",
  "rgb": {
    "r": 34,
    "g": 8,
    "b": 56
  },
  "hsl": {
    "h": 272.5,
    "s": 75,
    "l": 12.549
  },
  "oklch": {
    "l": 0.21085,
    "c": 0.08798,
    "h": 304.5
  },
  "luminance": 0.00799
}

Semantic roles & 50–950 ramp

primary
#220838
secondary
#4A7725
accent
#F2368C
background
#F5F4F6
surface
#EAE7EC
border
#C6C3C7
text
#050107
muted
#79777A

Preview Lab

Preview with #220838

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

Preview Lab → · Contrast checker → · Palette generator →

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