#28135B#28135B

#28135B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.119 H 289.1°. Best body text is #FFFFFF at 15.74:1 contrast (WCAG AA passes).

Color values

HEX#28135B
RGBrgb(40, 19, 91)
HSLhsl(258, 65%, 22%)
HSVhsv(258, 79%, 36%)
CMYKcmyk(56%, 79.1%, 0%, 64.3%)
CIE-LABlab(13.66, 30.08, -39.27)
CIE-LCHlch(13.66, 49.47, 307.45°)
OKLaboklab(26.91% 0.0391 -0.1129)
OKLCHoklch(26.91% 0.119 289.1)
XYZxyz(2.9957, 1.6721, 10.0604)
Luminance0.0167 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28135B #465B13
analogous
#13225B #28135B #4C135B
triadic
#28135B #5B2813 #135B28
tetradic
#28135B #5B1322 #465B13 #135B4C
square
#28135B #5B1322 #465B13 #135B4C
split-complementary
#28135B #5B4C13 #225B13
monochromatic
#0B0519 #120828 #28135B #3E1E8E #5528C0

Accessibility & contrast

On white

15.74
#28135B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.33
#28135B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28135B
15.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28135B#FFFFFF#000000##FFFFFF
##28135B1.0015.741.3315.74
#FFFFFF15.741.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245D
Deuteranopia (green-blind)
#00215A
Tritanopia (blue-blind)
#152736
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28135b;
/* rgb */ color: rgb(40, 19, 91);
/* oklch */ color: oklch(26.9% 0.119 289.1);
Tailwind
colors: {
  custom: {
    50: '#68538a',
    500: '#28135b',
    950: '#000000',
  },
}
SCSS
$custom: #28135b;
$custom-light: #68538a;
$custom-dark: #000000;
JSON
{
  "hex": "#28135b",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 91
  },
  "hsl": {
    "h": 257.5,
    "s": 65.455,
    "l": 21.569
  },
  "oklch": {
    "l": 0.2691,
    "c": 0.11944,
    "h": 289.1
  },
  "luminance": 0.01672
}

Semantic roles & 50–950 ramp

primary
#28135B
secondary
#789337
accent
#E83FB7
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28135B

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

Preview Lab → · Contrast checker → · Palette generator →

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