#28115D#28115D

#28115D is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.8% C 0.124 H 288.9°. Best body text is #FFFFFF at 15.81:1 contrast (WCAG AA passes).

Color values

HEX#28115D
RGBrgb(40, 17, 93)
HSLhsl(258, 69%, 22%)
HSVhsv(258, 82%, 36%)
CMYKcmyk(57%, 81.7%, 0%, 63.5%)
CIE-LABlab(13.48, 31.81, -40.91)
CIE-LCHlch(13.48, 51.82, 307.87°)
OKLaboklab(26.85% 0.0403 -0.1176)
OKLCHoklch(26.85% 0.124 288.9)
XYZxyz(3.0507, 1.6422, 10.5100)
Luminance0.0164 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28115D #465D11
analogous
#11205D #28115D #4E115D
triadic
#28115D #5D2811 #115D28
tetradic
#28115D #5D1120 #465D11 #115D4E
square
#28115D #5D1120 #465D11 #115D4E
split-complementary
#28115D #5D4E11 #205D11
monochromatic
#0B051A #120829 #28115D #3E1A91 #5524C4

Accessibility & contrast

On white

15.81
#28115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#28115D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28115D
15.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28115D#FFFFFF#000000##FFFFFF
##28115D1.0015.811.3315.81
#FFFFFF15.811.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245F
Deuteranopia (green-blind)
#00215C
Tritanopia (blue-blind)
#132636
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28115d;
/* rgb */ color: rgb(40, 17, 93);
/* oklch */ color: oklch(26.8% 0.124 288.9);
Tailwind
colors: {
  custom: {
    50: '#69528c',
    500: '#28115d',
    950: '#000000',
  },
}
SCSS
$custom: #28115d;
$custom-light: #69528c;
$custom-dark: #000000;
JSON
{
  "hex": "#28115d",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 258.158,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.26849,
    "c": 0.12433,
    "h": 288.9
  },
  "luminance": 0.01642
}

Semantic roles & 50–950 ramp

primary
#28115D
secondary
#789634
accent
#EC3CB7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28115D

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

Preview Lab → · Contrast checker → · Palette generator →

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