#28115B#28115B

#28115B is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.6% C 0.122 H 289.6°. Best body text is #FFFFFF at 15.89:1 contrast (WCAG AA passes).

Color values

HEX#28115B
RGBrgb(40, 17, 91)
HSLhsl(259, 69%, 21%)
HSVhsv(259, 81%, 36%)
CMYKcmyk(56%, 81.3%, 0%, 64.3%)
CIE-LABlab(13.27, 31.19, -39.91)
CIE-LCHlch(13.27, 50.65, 308.00°)
OKLaboklab(26.64% 0.0409 -0.1147)
OKLCHoklch(26.64% 0.122 289.6)
XYZxyz(2.9633, 1.6072, 10.0496)
Luminance0.0161 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28115B #445B11
analogous
#111F5B #28115B #4D115B
triadic
#28115B #5B2811 #115B28
tetradic
#28115B #5B111F #445B11 #115B4D
square
#28115B #5B111F #445B11 #115B4D
split-complementary
#28115B #5B4D11 #1F5B11
monochromatic
#0B051A #110727 #28115B #3F1B8F #5524C2

Accessibility & contrast

On white

15.89
#28115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28115B
15.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28115B#FFFFFF#000000##FFFFFF
##28115B1.0015.891.3215.89
#FFFFFF15.891.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00235D
Deuteranopia (green-blind)
#00205A
Tritanopia (blue-blind)
#152635
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28115b;
/* rgb */ color: rgb(40, 17, 91);
/* oklch */ color: oklch(26.6% 0.122 289.6);
Tailwind
colors: {
  custom: {
    50: '#69528a',
    500: '#28115b',
    950: '#000000',
  },
}
SCSS
$custom: #28115b;
$custom-light: #69528a;
$custom-dark: #000000;
JSON
{
  "hex": "#28115b",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 258.649,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.26637,
    "c": 0.12178,
    "h": 289.6
  },
  "luminance": 0.01607
}

Semantic roles & 50–950 ramp

primary
#28115B
secondary
#769434
accent
#EB3CB5
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28115B

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

Preview Lab → · Contrast checker → · Palette generator →

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