#28043A#28043A

#28043A is a very dark, moderate purple. Relative luminance 0.008; OKLCH L 21.7% C 0.099 H 311.1°. Best body text is #FFFFFF at 17.97:1 contrast (WCAG AA passes).

Color values

HEX#28043A
RGBrgb(40, 4, 58)
HSLhsl(280, 87%, 12%)
HSVhsv(280, 93%, 23%)
CMYKcmyk(31%, 93.1%, 0%, 77.3%)
CIE-LABlab(7.62, 28.49, -26.18)
CIE-LCHlch(7.62, 38.70, 317.42°)
OKLaboklab(21.66% 0.0648 -0.0743)
OKLCHoklch(21.66% 0.099 311.1)
XYZxyz(1.6821, 0.8435, 4.0764)
Luminance0.0084 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28043A #163A04
analogous
#0D043A #28043A #3A0431
triadic
#28043A #3A2804 #043A28
tetradic
#28043A #3A0D04 #163A04 #04313A
square
#28043A #3A0D04 #163A04 #04313A
split-complementary
#28043A #313A04 #043A0D
monochromatic
#14021D #14021D #28043A #4F0873 #770CAD

Accessibility & contrast

On white

17.97
#28043A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.17
#28043A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28043A
17.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28043A#FFFFFF#000000##FFFFFF
##28043A1.0017.971.1717.97
#FFFFFF17.971.0021.001.00
#0000001.1721.001.0021.00
##FFFFFF17.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00153B
Deuteranopia (green-blind)
#001739
Tritanopia (blue-blind)
#26111F
Achromatopsia (no color)
#171717

Design tokens & code

CSS
--color: #28043a;
/* rgb */ color: rgb(40, 4, 58);
/* oklch */ color: oklch(21.7% 0.099 311.1);
Tailwind
colors: {
  custom: {
    50: '#654971',
    500: '#28043a',
    950: '#000000',
  },
}
SCSS
$custom: #28043a;
$custom-light: #654971;
$custom-dark: #000000;
JSON
{
  "hex": "#28043a",
  "rgb": {
    "r": 40,
    "g": 4,
    "b": 58
  },
  "hsl": {
    "h": 280,
    "s": 87.097,
    "l": 12.157
  },
  "oklch": {
    "l": 0.21657,
    "c": 0.09859,
    "h": 311.1
  },
  "luminance": 0.00843
}

Semantic roles & 50–950 ramp

primary
#28043A
secondary
#3D7C1E
accent
#FD2B71
background
#F6F4F6
surface
#EBE7EC
border
#C6C3C7
text
#060107
muted
#7A777A

Preview Lab

Preview with #28043A

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

Preview Lab → · Contrast checker → · Palette generator →

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