#28023A#28023A

#28023A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.4% C 0.102 H 311.6°. Best body text is #FFFFFF at 18.10:1 contrast (WCAG AA passes).

Color values

HEX#28023A
RGBrgb(40, 2, 58)
HSLhsl(281, 93%, 12%)
HSVhsv(281, 97%, 23%)
CMYKcmyk(31%, 96.6%, 0%, 77.3%)
CIE-LABlab(7.23, 29.62, -26.82)
CIE-LCHlch(7.23, 39.96, 317.84°)
OKLaboklab(21.37% 0.0676 -0.0763)
OKLCHoklch(21.37% 0.102 311.6)
XYZxyz(1.6604, 0.8001, 4.0691)
Luminance0.0080 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28023A #143A02
analogous
#0C023A #28023A #3A0230
triadic
#28023A #3A2802 #023A28
tetradic
#28023A #3A0C02 #143A02 #02303A
square
#28023A #3A0C02 #143A02 #02303A
split-complementary
#28023A #303A02 #023A0C
monochromatic
#14011E #14011E #28023A #510475 #7A06B0

Accessibility & contrast

On white

18.10
#28023A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28023A
18.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28023A#FFFFFF#000000##FFFFFF
##28023A1.0018.101.1618.10
#FFFFFF18.101.0021.001.00
#0000001.1621.001.0021.00
##FFFFFF18.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00143B
Deuteranopia (green-blind)
#001739
Tritanopia (blue-blind)
#26101F
Achromatopsia (no color)
#161616

Design tokens & code

CSS
--color: #28023a;
/* rgb */ color: rgb(40, 2, 58);
/* oklch */ color: oklch(21.4% 0.102 311.6);
Tailwind
colors: {
  custom: {
    50: '#654871',
    500: '#28023a',
    950: '#000000',
  },
}
SCSS
$custom: #28023a;
$custom-light: #654871;
$custom-dark: #000000;
JSON
{
  "hex": "#28023a",
  "rgb": {
    "r": 40,
    "g": 2,
    "b": 58
  },
  "hsl": {
    "h": 280.714,
    "s": 93.333,
    "l": 11.765
  },
  "oklch": {
    "l": 0.21372,
    "c": 0.10194,
    "h": 311.6
  },
  "luminance": 0.008
}

Semantic roles & 50–950 ramp

primary
#28023A
secondary
#3A7D1A
accent
#FF296E
background
#F6F4F6
surface
#EBE6EC
border
#C6C2C7
text
#060007
muted
#7A777A

Preview Lab

Preview with #28023A

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

Preview Lab → · Contrast checker → · Palette generator →

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