#28135D#28135D

#28135D is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.1% C 0.122 H 288.4°. Best body text is #FFFFFF at 15.66:1 contrast (WCAG AA passes).

Color values

HEX#28135D
RGBrgb(40, 19, 93)
HSLhsl(257, 66%, 22%)
HSVhsv(257, 80%, 36%)
CMYKcmyk(57%, 79.6%, 0%, 63.5%)
CIE-LABlab(13.87, 30.72, -40.28)
CIE-LCHlch(13.87, 50.66, 307.33°)
OKLaboklab(27.12% 0.0385 -0.1158)
OKLCHoklch(27.12% 0.122 288.4)
XYZxyz(3.0831, 1.7070, 10.5208)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28135D #485D13
analogous
#13235D #28135D #4D135D
triadic
#28135D #5D2813 #135D28
tetradic
#28135D #5D1323 #485D13 #135D4D
square
#28135D #5D1323 #485D13 #135D4D
split-complementary
#28135D #5D4D13 #235D13
monochromatic
#0B0519 #12092A #28135D #3E1D90 #5428C3

Accessibility & contrast

On white

15.66
#28135D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#28135D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28135D
15.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28135D#FFFFFF#000000##FFFFFF
##28135D1.0015.661.3415.66
#FFFFFF15.661.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #28135d;
/* rgb */ color: rgb(40, 19, 93);
/* oklch */ color: oklch(27.1% 0.122 288.4);
Tailwind
colors: {
  custom: {
    50: '#69538c',
    500: '#28135d',
    950: '#000000',
  },
}
SCSS
$custom: #28135d;
$custom-light: #69538c;
$custom-dark: #000000;
JSON
{
  "hex": "#28135d",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 93
  },
  "hsl": {
    "h": 257.027,
    "s": 66.071,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27118,
    "c": 0.12204,
    "h": 288.4
  },
  "luminance": 0.01707
}

Semantic roles & 50–950 ramp

primary
#28135D
secondary
#7A9537
accent
#E93FB9
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28135D

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

Preview Lab → · Contrast checker → · Palette generator →

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