#221828#221828

#221828 is a very dark, muted violet. Relative luminance 0.011; OKLCH L 22.9% C 0.033 H 312.3°. Best body text is #FFFFFF at 17.08:1 contrast (WCAG AA passes).

Color values

HEX#221828
RGBrgb(34, 24, 40)
HSLhsl(278, 25%, 13%)
HSVhsv(278, 40%, 16%)
CMYKcmyk(15%, 40%, 0%, 84.3%)
CIE-LABlab(10.16, 8.91, -9.01)
CIE-LCHlch(10.16, 12.68, 314.69°)
OKLaboklab(22.9% 0.0225 -0.0247)
OKLCHoklch(22.9% 0.033 312.3)
XYZxyz(1.3693, 1.1466, 2.1562)
Luminance0.0115 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#221828 #1E2818
analogous
#1A1828 #221828 #281826
triadic
#221828 #282218 #182822
tetradic
#221828 #281A18 #1E2818 #182628
square
#221828 #281A18 #1E2818 #182628
split-complementary
#221828 #262818 #18281A
monochromatic
#100B13 #100B13 #221828 #432F4E #634674

Accessibility & contrast

On white

17.08
#221828 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.23
#221828 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #221828
17.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##221828#FFFFFF#000000##FFFFFF
##2218281.0017.081.2317.08
#FFFFFF17.081.0021.001.00
#0000001.2321.001.0021.00
##FFFFFF17.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#151B29
Deuteranopia (green-blind)
#181C28
Tritanopia (blue-blind)
#211A1E
Achromatopsia (no color)
#1C1C1C

Design tokens & code

CSS
--color: #221828;
/* rgb */ color: rgb(34, 24, 40);
/* oklch */ color: oklch(22.9% 0.033 312.3);
Tailwind
colors: {
  custom: {
    50: '#5d5462',
    500: '#221828',
    950: '#000000',
  },
}
SCSS
$custom: #221828;
$custom-light: #5d5462;
$custom-dark: #000000;
JSON
{
  "hex": "#221828",
  "rgb": {
    "r": 34,
    "g": 24,
    "b": 40
  },
  "hsl": {
    "h": 277.5,
    "s": 25,
    "l": 12.549
  },
  "oklch": {
    "l": 0.22901,
    "c": 0.03341,
    "h": 312.3
  },
  "luminance": 0.01147
}

Semantic roles & 50–950 ramp

primary
#221828
secondary
#4A5C40
accent
#C16689
background
#F5F4F5
surface
#E9E7EA
border
#C5C3C6
text
#040205
muted
#797879

Preview Lab

Preview with #221828

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

Preview Lab → · Contrast checker → · Palette generator →

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