#28023B#28023B

#28023B is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.5% C 0.103 H 310.8°. Best body text is #FFFFFF at 18.07:1 contrast (WCAG AA passes).

Color values

HEX#28023B
RGBrgb(40, 2, 59)
HSLhsl(280, 93%, 12%)
HSVhsv(280, 97%, 23%)
CMYKcmyk(32.2%, 96.6%, 0%, 76.9%)
CIE-LABlab(7.32, 29.89, -27.39)
CIE-LCHlch(7.32, 40.54, 317.49°)
OKLaboklab(21.47% 0.0673 -0.0779)
OKLCHoklch(21.47% 0.103 310.8)
XYZxyz(1.6860, 0.8103, 4.2044)
Luminance0.0081 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28023B #153B02
analogous
#0C023B #28023B #3B0232
triadic
#28023B #3B2802 #023B28
tetradic
#28023B #3B0C02 #153B02 #02323B
square
#28023B #3B0C02 #153B02 #02323B
split-complementary
#28023B #323B02 #023B0C
monochromatic
#14011E #14011E #28023B #500476 #7806B1

Accessibility & contrast

On white

18.07
#28023B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.16
#28023B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28023B
18.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28023B#FFFFFF#000000##FFFFFF
##28023B1.0018.071.1618.07
#FFFFFF18.071.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153C
Deuteranopia (green-blind)
#00173A
Tritanopia (blue-blind)
#25101F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28023b;
/* rgb */ color: rgb(40, 2, 59);
/* oklch */ color: oklch(21.5% 0.103 310.8);
Tailwind
colors: {
  custom: {
    50: '#654871',
    500: '#28023b',
    950: '#000000',
  },
}
SCSS
$custom: #28023b;
$custom-light: #654871;
$custom-dark: #000000;
JSON
{
  "hex": "#28023b",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 59
  },
  "hsl": {
    "h": 280,
    "s": 93.443,
    "l": 11.961
  },
  "oklch": {
    "l": 0.21471,
    "c": 0.10294,
    "h": 310.8
  },
  "luminance": 0.0081
}

Semantic roles & 50–950 ramp

primary
#28023B
secondary
#3C7E1A
accent
#FF2970
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#060008
muted
#7A777B

Preview Lab

Preview with #28023B

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

Preview Lab → · Contrast checker → · Palette generator →

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