#28115A#28115A

#28115A is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.5% C 0.120 H 290.0°. Best body text is #FFFFFF at 15.93:1 contrast (WCAG AA passes).

Color values

HEX#28115A
RGBrgb(40, 17, 90)
HSLhsl(259, 68%, 21%)
HSVhsv(259, 81%, 35%)
CMYKcmyk(55.6%, 81.1%, 0%, 64.7%)
CIE-LABlab(13.17, 30.87, -39.41)
CIE-LCHlch(13.17, 50.06, 308.08°)
OKLaboklab(26.53% 0.0412 -0.1132)
OKLCHoklch(26.53% 0.121 290)
XYZxyz(2.9205, 1.5901, 9.8239)
Luminance0.0159 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28115A #435A11
analogous
#111E5A #28115A #4C115A
triadic
#28115A #5A2811 #115A28
tetradic
#28115A #5A111E #435A11 #115A4C
square
#28115A #5A111E #435A11 #115A4C
split-complementary
#28115A #5A4C11 #1E5A11
monochromatic
#0B051A #110727 #28115A #3F1B8D #5624C1

Accessibility & contrast

On white

15.93
#28115A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#28115A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28115A
15.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28115A#FFFFFF#000000##FFFFFF
##28115A1.0015.931.3215.93
#FFFFFF15.931.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235C
Deuteranopia (green-blind)
#002059
Tritanopia (blue-blind)
#162535
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28115a;
/* rgb */ color: rgb(40, 17, 90);
/* oklch */ color: oklch(26.5% 0.120 290.0);
Tailwind
colors: {
  custom: {
    50: '#685289',
    500: '#28115a',
    950: '#000000',
  },
}
SCSS
$custom: #28115a;
$custom-light: #685289;
$custom-dark: #000000;
JSON
{
  "hex": "#28115a",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 90
  },
  "hsl": {
    "h": 258.904,
    "s": 68.224,
    "l": 20.98
  },
  "oklch": {
    "l": 0.26532,
    "c": 0.1205,
    "h": 290
  },
  "luminance": 0.0159
}

Semantic roles & 50–950 ramp

primary
#28115A
secondary
#759334
accent
#EB3DB4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28115A

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

Preview Lab → · Contrast checker → · Palette generator →

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