#28222E#28222E

#28222E is a dark, muted violet. Relative luminance 0.018; OKLCH L 26.4% C 0.024 H 307.5°. Best body text is #FFFFFF at 15.46:1 contrast (WCAG AA passes).

Color values

HEX#28222E
RGBrgb(40, 34, 46)
HSLhsl(270, 15%, 16%)
HSVhsv(270, 26%, 18%)
CMYKcmyk(13%, 26.1%, 0%, 82%)
CIE-LABlab(14.36, 5.80, -6.89)
CIE-LCHlch(14.36, 9.00, 310.08°)
OKLaboklab(26.39% 0.0143 -0.0187)
OKLCHoklch(26.39% 0.024 307.5)
XYZxyz(1.9402, 1.7924, 2.8280)
Luminance0.0179 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28222E #282E22
analogous
#22222E #28222E #2E222E
triadic
#28222E #2E2822 #222E28
tetradic
#28222E #2E2222 #282E22 #222E2E
square
#28222E #2E2222 #282E22 #222E2E
split-complementary
#28222E #2E2E22 #222E22
monochromatic
#0F0D12 #0F0D12 #28222E #473C51 #655674

Accessibility & contrast

On white

15.46
#28222E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28222E
15.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28222E#FFFFFF#000000##FFFFFF
##28222E1.0015.461.3615.46
#FFFFFF15.461.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#20242F
Deuteranopia (green-blind)
#21242E
Tritanopia (blue-blind)
#272426
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28222e;
/* rgb */ color: rgb(40, 34, 46);
/* oklch */ color: oklch(26.4% 0.024 307.5);
Tailwind
colors: {
  custom: {
    50: '#625d66',
    500: '#28222e',
    950: '#000000',
  },
}
SCSS
$custom: #28222e;
$custom-light: #625d66;
$custom-dark: #000000;
JSON
{
  "hex": "#28222e",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 46
  },
  "hsl": {
    "h": 270,
    "s": 15,
    "l": 15.686
  },
  "oklch": {
    "l": 0.26393,
    "c": 0.02356,
    "h": 307.5
  },
  "luminance": 0.01792
}

Semantic roles & 50–950 ramp

primary
#28222E
secondary
#565F4D
accent
#B87094
background
#F5F5F6
surface
#EAE9EB
border
#C6C5C6
text
#050406
muted
#79797A

Preview Lab

Preview with #28222E

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

Preview Lab → · Contrast checker → · Palette generator →

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