#28052D#28052D

#28052D is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.7% C 0.083 H 322.5°. Best body text is #FFFFFF at 18.26:1 contrast (WCAG AA passes).

Color values

HEX#28052D
RGBrgb(40, 5, 45)
HSLhsl(293, 80%, 10%)
HSVhsv(293, 89%, 18%)
CMYKcmyk(11.1%, 88.9%, 0%, 82.4%)
CIE-LABlab(6.77, 24.51, -17.99)
CIE-LCHlch(6.77, 30.41, 323.73°)
OKLaboklab(20.66% 0.0659 -0.0506)
OKLCHoklch(20.66% 0.083 322.5)
XYZxyz(1.4029, 0.7492, 2.5528)
Luminance0.0075 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28052D #0A2D05
analogous
#14052D #28052D #2D051E
triadic
#28052D #2D2805 #052D28
tetradic
#28052D #2D1405 #0A2D05 #051E2D
square
#28052D #2D1405 #0A2D05 #051E2D
split-complementary
#28052D #1E2D05 #052D14
monochromatic
#18031C #18031C #28052D #590B64 #8A119B

Accessibility & contrast

On white

18.26
#28052D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28052D
18.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28052D#FFFFFF#000000##FFFFFF
##28052D1.0018.261.1518.26
#FFFFFF18.261.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00122E
Deuteranopia (green-blind)
#0A162C
Tritanopia (blue-blind)
#290C18
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28052d;
/* rgb */ color: rgb(40, 5, 45);
/* oklch */ color: oklch(20.7% 0.083 322.5);
Tailwind
colors: {
  custom: {
    50: '#644966',
    500: '#28052d',
    950: '#000000',
  },
}
SCSS
$custom: #28052d;
$custom-light: #644966;
$custom-dark: #000000;
JSON
{
  "hex": "#28052d",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 45
  },
  "hsl": {
    "h": 292.5,
    "s": 80,
    "l": 9.804
  },
  "oklch": {
    "l": 0.20658,
    "c": 0.08313,
    "h": 322.5
  },
  "luminance": 0.00749
}

Semantic roles & 50–950 ramp

primary
#28052D
secondary
#296F1F
accent
#F6314A
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28052D

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

Preview Lab → · Contrast checker → · Palette generator →

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