#28108A#28108A

#28108A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.180 H 278.0°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#28108A
RGBrgb(40, 16, 138)
HSLhsl(252, 79%, 30%)
HSVhsv(252, 88%, 54%)
CMYKcmyk(71%, 88.4%, 0%, 45.9%)
CIE-LABlab(18.61, 45.91, -61.57)
CIE-LCHlch(18.61, 76.80, 306.71°)
OKLaboklab(31.94% 0.0248 -0.1778)
OKLCHoklch(31.94% 0.18 278)
XYZxyz(5.6463, 2.6562, 24.2550)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28108A #728A10
analogous
#10358A #28108A #65108A
triadic
#28108A #8A2810 #108A28
tetradic
#28108A #8A1035 #728A10 #108A65
square
#28108A #8A1035 #728A10 #108A65
split-complementary
#28108A #8A6510 #358A10
monochromatic
#08031C #180A53 #28108A #3816C1 #522EE7

Accessibility & contrast

On white

13.71
#28108A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#28108A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28108A
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28108A#FFFFFF#000000##FFFFFF
##28108A1.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00328D
Deuteranopia (green-blind)
#002888
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #28108a;
/* rgb */ color: rgb(40, 16, 138);
/* oklch */ color: oklch(31.9% 0.180 278.0);
Tailwind
colors: {
  custom: {
    50: '#7355ad',
    500: '#28108a',
    950: '#000000',
  },
}
SCSS
$custom: #28108a;
$custom-light: #7355ad;
$custom-dark: #000000;
JSON
{
  "hex": "#28108a",
  "rgb": {
    "r": 40,
    "g": 16,
    "b": 138
  },
  "hsl": {
    "h": 251.803,
    "s": 79.221,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31936,
    "c": 0.17952,
    "h": 278
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#28108A
secondary
#A4BF37
accent
#F632CF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #28108A

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

Preview Lab → · Contrast checker → · Palette generator →

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