#28223C#28223C

#28223C is a dark, muted violet. Relative luminance 0.019; OKLCH L 27.2% C 0.048 H 293.6°. Best body text is #FFFFFF at 15.17:1 contrast (WCAG AA passes).

Color values

HEX#28223C
RGBrgb(40, 34, 60)
HSLhsl(254, 28%, 18%)
HSVhsv(254, 43%, 24%)
CMYKcmyk(33.3%, 43.3%, 0%, 76.5%)
CIE-LABlab(15.07, 9.91, -15.71)
CIE-LCHlch(15.07, 18.58, 302.25°)
OKLaboklab(27.17% 0.0191 -0.0438)
OKLCHoklch(27.17% 0.048 293.6)
XYZxyz(2.2625, 1.9214, 4.5258)
Luminance0.0192 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28223C #363C22
analogous
#22293C #28223C #35223C
triadic
#28223C #3C2822 #223C28
tetradic
#28223C #3C2229 #363C22 #223C35
square
#28223C #3C2229 #363C22 #223C35
split-complementary
#28223C #3C3522 #293C22
monochromatic
#0D0B14 #0E0C15 #28223C #423863 #5C4E8A

Accessibility & contrast

On white

15.17
#28223C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#28223C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28223C
15.17:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28223C#FFFFFF#000000##FFFFFF
##28223C1.0015.171.3815.17
#FFFFFF15.171.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.171.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1B263D
Deuteranopia (green-blind)
#1B253B
Tritanopia (blue-blind)
#24272C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #28223c;
/* rgb */ color: rgb(40, 34, 60);
/* oklch */ color: oklch(27.2% 0.048 293.6);
Tailwind
colors: {
  custom: {
    50: '#625d72',
    500: '#28223c',
    950: '#000000',
  },
}
SCSS
$custom: #28223c;
$custom-light: #625d72;
$custom-dark: #000000;
JSON
{
  "hex": "#28223c",
  "rgb": {
    "r": 40,
    "g": 34,
    "b": 60
  },
  "hsl": {
    "h": 253.846,
    "s": 27.66,
    "l": 18.431
  },
  "oklch": {
    "l": 0.27173,
    "c": 0.04782,
    "h": 293.6
  },
  "luminance": 0.01921
}

Semantic roles & 50–950 ramp

primary
#28223C
secondary
#676F4B
accent
#C464AE
background
#F5F5F6
surface
#EAE9EC
border
#C6C5C7
text
#050407
muted
#79797A

Preview Lab

Preview with #28223C

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

Preview Lab → · Contrast checker → · Palette generator →

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