#28115C#28115C

#28115C is a dark, vivid violet. Relative luminance 0.016; OKLCH L 26.7% C 0.123 H 289.2°. Best body text is #FFFFFF at 15.85:1 contrast (WCAG AA passes).

Color values

HEX#28115C
RGBrgb(40, 17, 92)
HSLhsl(258, 69%, 21%)
HSVhsv(258, 82%, 36%)
CMYKcmyk(56.5%, 81.5%, 0%, 63.9%)
CIE-LABlab(13.38, 31.50, -40.41)
CIE-LCHlch(13.38, 51.24, 307.93°)
OKLaboklab(26.74% 0.0406 -0.1162)
OKLCHoklch(26.74% 0.123 289.2)
XYZxyz(3.0067, 1.6246, 10.2783)
Luminance0.0163 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28115C #455C11
analogous
#11205C #28115C #4E115C
triadic
#28115C #5C2811 #115C28
tetradic
#28115C #5C1120 #455C11 #115C4E
square
#28115C #5C1120 #455C11 #115C4E
split-complementary
#28115C #5C4E11 #205C11
monochromatic
#0B051A #120728 #28115C #3E1B90 #5524C3

Accessibility & contrast

On white

15.85
#28115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28115C
15.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28115C#FFFFFF#000000##FFFFFF
##28115C1.0015.851.3315.85
#FFFFFF15.851.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245E
Deuteranopia (green-blind)
#00205B
Tritanopia (blue-blind)
#142636
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #28115c;
/* rgb */ color: rgb(40, 17, 92);
/* oklch */ color: oklch(26.7% 0.123 289.2);
Tailwind
colors: {
  custom: {
    50: '#69528b',
    500: '#28115c',
    950: '#000000',
  },
}
SCSS
$custom: #28115c;
$custom-light: #69528b;
$custom-dark: #000000;
JSON
{
  "hex": "#28115c",
  "rgb": {
    "r": 40,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 258.4,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26742,
    "c": 0.12306,
    "h": 289.2
  },
  "luminance": 0.01625
}

Semantic roles & 50–950 ramp

primary
#28115C
secondary
#779534
accent
#EC3CB6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28115C

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

Preview Lab → · Contrast checker → · Palette generator →

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