#28108D#28108D

#28108D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 32.3% C 0.183 H 277.5°. Best body text is #FFFFFF at 13.56:1 contrast (WCAG AA passes).

Color values

HEX#28108D
RGBrgb(40, 16, 141)
HSLhsl(252, 80%, 31%)
HSVhsv(252, 89%, 55%)
CMYKcmyk(71.6%, 88.7%, 0%, 44.7%)
CIE-LABlab(18.99, 46.78, -62.82)
CIE-LCHlch(18.99, 78.32, 306.68°)
OKLaboklab(32.3% 0.0238 -0.1814)
OKLCHoklch(32.3% 0.183 277.5)
XYZxyz(5.8665, 2.7442, 25.4147)
Luminance0.0274 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28108D #758D10
analogous
#10368D #28108D #66108D
triadic
#28108D #8D2810 #108D28
tetradic
#28108D #8D1036 #758D10 #108D66
square
#28108D #8D1036 #758D10 #108D66
split-complementary
#28108D #8D6610 #368D10
monochromatic
#09041F #180A56 #28108D #3816C4 #5330E7

Accessibility & contrast

On white

13.56
#28108D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#28108D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28108D
13.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28108D#FFFFFF#000000##FFFFFF
##28108D1.0013.561.5513.56
#FFFFFF13.561.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003390
Deuteranopia (green-blind)
#00298B
Tritanopia (blue-blind)
#003A52
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #28108d;
/* rgb */ color: rgb(40, 16, 141);
/* oklch */ color: oklch(32.3% 0.183 277.5);
Tailwind
colors: {
  custom: {
    50: '#7455b0',
    500: '#28108d',
    950: '#000000',
  },
}
SCSS
$custom: #28108d;
$custom-light: #7455b0;
$custom-dark: #000000;
JSON
{
  "hex": "#28108d",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 141
  },
  "hsl": {
    "h": 251.52,
    "s": 79.618,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32303,
    "c": 0.18296,
    "h": 277.5
  },
  "luminance": 0.02745
}

Semantic roles & 50–950 ramp

primary
#28108D
secondary
#A7C237
accent
#F632D0
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0311
muted
#7C7880

Preview Lab

Preview with #28108D

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

Preview Lab → · Contrast checker → · Palette generator →

#28108D Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva