#28052F#28052F

#28052F is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 20.8% C 0.085 H 320.5°. Best body text is #FFFFFF at 18.21:1 contrast (WCAG AA passes).

Color values

HEX#28052F
RGBrgb(40, 5, 47)
HSLhsl(290, 81%, 10%)
HSVhsv(290, 89%, 18%)
CMYKcmyk(14.9%, 89.4%, 0%, 81.6%)
CIE-LABlab(6.91, 25.04, -19.25)
CIE-LCHlch(6.91, 31.59, 322.44°)
OKLaboklab(20.82% 0.0657 -0.0542)
OKLCHoklch(20.82% 0.085 320.5)
XYZxyz(1.4424, 0.7650, 2.7605)
Luminance0.0076 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28052F #0C2F05
analogous
#13052F #28052F #2F0521
triadic
#28052F #2F2805 #052F28
tetradic
#28052F #2F1305 #0C2F05 #05212F
square
#28052F #2F1305 #0C2F05 #05212F
split-complementary
#28052F #212F05 #052F13
monochromatic
#18031C #18031C #28052F #570B66 #86119E

Accessibility & contrast

On white

18.21
#28052F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28052F
18.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28052F#FFFFFF#000000##FFFFFF
##28052F1.0018.211.1518.21
#FFFFFF18.211.0021.001.00
#0000001.1521.001.0021.00
##FFFFFF18.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001330
Deuteranopia (green-blind)
#09172E
Tritanopia (blue-blind)
#280D19
Achromatopsia (no color)
#151515

Design tokens & code

CSS
--color: #28052f;
/* rgb */ color: rgb(40, 5, 47);
/* oklch */ color: oklch(20.8% 0.085 320.5);
Tailwind
colors: {
  custom: {
    50: '#644968',
    500: '#28052f',
    950: '#000000',
  },
}
SCSS
$custom: #28052f;
$custom-light: #644968;
$custom-dark: #000000;
JSON
{
  "hex": "#28052f",
  "rgb": {
    "r": 40,
    "g": 5,
    "b": 47
  },
  "hsl": {
    "h": 290,
    "s": 80.769,
    "l": 10.196
  },
  "oklch": {
    "l": 0.20821,
    "c": 0.08521,
    "h": 320.5
  },
  "luminance": 0.00765
}

Semantic roles & 50–950 ramp

primary
#28052F
secondary
#2D711F
accent
#F73152
background
#F6F4F6
surface
#EBE7EB
border
#C6C3C6
text
#050106
muted
#7A777A

Preview Lab

Preview with #28052F

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

Preview Lab → · Contrast checker → · Palette generator →

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