#28052C#28052C

#28052C is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.6% C 0.082 H 323.5°. Best body text is #FFFFFF at 18.29:1 contrast (WCAG AA passes).

Color values

HEX#28052C
RGBrgb(40, 5, 44)
HSLhsl(294, 80%, 10%)
HSVhsv(294, 89%, 17%)
CMYKcmyk(9.1%, 88.6%, 0%, 82.7%)
CIE-LABlab(6.70, 24.25, -17.35)
CIE-LCHlch(6.70, 29.82, 324.43°)
OKLaboklab(20.58% 0.066 -0.0488)
OKLCHoklch(20.58% 0.082 323.5)
XYZxyz(1.3839, 0.7416, 2.4526)
Luminance0.0074 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28052C #092C05
analogous
#15052C #28052C #2C051D
triadic
#28052C #2C2805 #052C28
tetradic
#28052C #2C1505 #092C05 #051D2C
square
#28052C #2C1505 #092C05 #051D2C
split-complementary
#28052C #1D2C05 #052C15
monochromatic
#19031B #19031B #28052C #5A0B63 #8C119A

Accessibility & contrast

On white

18.29
#28052C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.15
#28052C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28052C
18.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28052C#FFFFFF#000000##FFFFFF
##28052C1.0018.291.1518.29
#FFFFFF18.291.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122D
Deuteranopia (green-blind)
#0B162B
Tritanopia (blue-blind)
#290B17
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28052c;
/* rgb */ color: rgb(40, 5, 44);
/* oklch */ color: oklch(20.6% 0.082 323.5);
Tailwind
colors: {
  custom: {
    50: '#644965',
    500: '#28052c',
    950: '#000000',
  },
}
SCSS
$custom: #28052c;
$custom-light: #644965;
$custom-dark: #000000;
JSON
{
  "hex": "#28052c",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 44
  },
  "hsl": {
    "h": 293.846,
    "s": 79.592,
    "l": 9.608
  },
  "oklch": {
    "l": 0.20579,
    "c": 0.08209,
    "h": 323.5
  },
  "luminance": 0.00742
}

Semantic roles & 50–950 ramp

primary
#28052C
secondary
#276E1F
accent
#F63246
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050105
muted
#7A777A

Preview Lab

Preview with #28052C

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

Preview Lab → · Contrast checker → · Palette generator →

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