#28222C#28222C

#28222C is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.3% C 0.020 H 311.8°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#28222C
RGBrgb(40, 34, 44)
HSLhsl(276, 13%, 15%)
HSVhsv(276, 23%, 17%)
CMYKcmyk(9.1%, 22.7%, 0%, 82.7%)
CIE-LABlab(14.27, 5.26, -5.59)
CIE-LCHlch(14.27, 7.67, 313.27°)
OKLaboklab(26.3% 0.0135 -0.0151)
OKLCHoklch(26.3% 0.02 311.8)
XYZxyz(1.9016, 1.7770, 2.6252)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28222C #262C22
analogous
#23222C #28222C #2C222B
triadic
#28222C #2C2822 #222C28
tetradic
#28222C #2C2322 #262C22 #222B2C
square
#28222C #2C2322 #262C22 #222B2C
split-complementary
#28222C #2B2C22 #222C23
monochromatic
#100D11 #100D11 #28222C #473D4F #675771

Accessibility & contrast

On white

15.49
#28222C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#28222C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28222C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28222C#FFFFFF#000000##FFFFFF
##28222C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#21242C
Deuteranopia (green-blind)
#22242C
Tritanopia (blue-blind)
#282325
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28222c;
/* rgb */ color: rgb(40, 34, 44);
/* oklch */ color: oklch(26.3% 0.020 311.8);
Tailwind
colors: {
  custom: {
    50: '#615d65',
    500: '#28222c',
    950: '#000000',
  },
}
SCSS
$custom: #28222c;
$custom-light: #615d65;
$custom-dark: #000000;
JSON
{
  "hex": "#28222c",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 44
  },
  "hsl": {
    "h": 276,
    "s": 12.821,
    "l": 15.294
  },
  "oklch": {
    "l": 0.26297,
    "c": 0.02023,
    "h": 311.8
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#28222C
secondary
#535D4D
accent
#B6728D
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050405
muted
#79797A

Preview Lab

Preview with #28222C

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

Preview Lab → · Contrast checker → · Palette generator →

#28222C Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva