#28052E#28052E

#28052E is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.7% C 0.084 H 321.5°. Best body text is #FFFFFF at 18.24:1 contrast (WCAG AA passes).

Color values

HEX#28052E
RGBrgb(40, 5, 46)
HSLhsl(291, 80%, 10%)
HSVhsv(291, 89%, 18%)
CMYKcmyk(13%, 89.1%, 0%, 82%)
CIE-LABlab(6.84, 24.78, -18.62)
CIE-LCHlch(6.84, 30.99, 323.07°)
OKLaboklab(20.74% 0.0658 -0.0524)
OKLCHoklch(20.74% 0.084 321.5)
XYZxyz(1.4224, 0.7570, 2.6554)
Luminance0.0076 (WCAG relative)
Temperatureneutral
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28052E #0B2E05
analogous
#14052E #28052E #2E051F
triadic
#28052E #2E2805 #052E28
tetradic
#28052E #2E1405 #0B2E05 #051F2E
square
#28052E #2E1405 #0B2E05 #051F2E
split-complementary
#28052E #1F2E05 #052E14
monochromatic
#18031C #18031C #28052E #580B65 #88119C

Accessibility & contrast

On white

18.24
#28052E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28052E
18.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28052E#FFFFFF#000000##FFFFFF
##28052E1.0018.241.1518.24
#FFFFFF18.241.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00132F
Deuteranopia (green-blind)
#09162D
Tritanopia (blue-blind)
#280C19
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28052e;
/* rgb */ color: rgb(40, 5, 46);
/* oklch */ color: oklch(20.7% 0.084 321.5);
Tailwind
colors: {
  custom: {
    50: '#644967',
    500: '#28052e',
    950: '#000000',
  },
}
SCSS
$custom: #28052e;
$custom-light: #644967;
$custom-dark: #000000;
JSON
{
  "hex": "#28052e",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 46
  },
  "hsl": {
    "h": 291.22,
    "s": 80.392,
    "l": 10
  },
  "oklch": {
    "l": 0.20739,
    "c": 0.08417,
    "h": 321.5
  },
  "luminance": 0.00757
}

Semantic roles & 50–950 ramp

primary
#28052E
secondary
#2B701F
accent
#F7314E
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28052E

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

Preview Lab → · Contrast checker → · Palette generator →

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