#28052B#28052B

#28052B is a very dark, moderate purple. Relative luminance 0.007; OKLCH L 20.5% C 0.081 H 324.6°. Best body text is #FFFFFF at 18.31:1 contrast (WCAG AA passes).

Color values

HEX#28052B
RGBrgb(40, 5, 43)
HSLhsl(295, 79%, 9%)
HSVhsv(295, 88%, 17%)
CMYKcmyk(7%, 88.4%, 0%, 83.1%)
CIE-LABlab(6.63, 24.00, -16.70)
CIE-LCHlch(6.63, 29.24, 325.16°)
OKLaboklab(20.5% 0.0661 -0.0469)
OKLCHoklch(20.5% 0.081 324.6)
XYZxyz(1.3654, 0.7342, 2.3548)
Luminance0.0073 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28052B #082B05
analogous
#15052B #28052B #2B051B
triadic
#28052B #2B2805 #052B28
tetradic
#28052B #2B1505 #082B05 #051B2B
square
#28052B #2B1505 #082B05 #051B2B
split-complementary
#28052B #1B2B05 #052B15
monochromatic
#19031B #19031B #28052B #5B0B62 #8E1299

Accessibility & contrast

On white

18.31
#28052B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28052B
18.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28052B#FFFFFF#000000##FFFFFF
##28052B1.0018.311.1518.31
#FFFFFF18.311.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.311.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28052b;
/* rgb */ color: rgb(40, 5, 43);
/* oklch */ color: oklch(20.5% 0.081 324.6);
Tailwind
colors: {
  custom: {
    50: '#644964',
    500: '#28052b',
    950: '#000000',
  },
}
SCSS
$custom: #28052b;
$custom-light: #644964;
$custom-dark: #000000;
JSON
{
  "hex": "#28052b",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 43
  },
  "hsl": {
    "h": 295.263,
    "s": 79.167,
    "l": 9.412
  },
  "oklch": {
    "l": 0.20501,
    "c": 0.08107,
    "h": 324.6
  },
  "luminance": 0.00734
}

Semantic roles & 50–950 ramp

primary
#28052B
secondary
#256D1F
accent
#F63242
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050105
muted
#7A777A

Preview Lab

Preview with #28052B

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

Preview Lab → · Contrast checker → · Palette generator →

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