#28135A#28135A

#28135A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.8% C 0.118 H 289.4°. Best body text is #FFFFFF at 15.78:1 contrast (WCAG AA passes).

Color values

HEX#28135A
RGBrgb(40, 19, 90)
HSLhsl(258, 65%, 21%)
HSVhsv(258, 79%, 35%)
CMYKcmyk(55.6%, 78.9%, 0%, 64.7%)
CIE-LABlab(13.56, 29.77, -38.77)
CIE-LCHlch(13.56, 48.88, 307.52°)
OKLaboklab(26.81% 0.0393 -0.1114)
OKLCHoklch(26.81% 0.118 289.4)
XYZxyz(2.9529, 1.6549, 9.8347)
Luminance0.0165 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28135A #455A13
analogous
#13225A #28135A #4C135A
triadic
#28135A #5A2813 #135A28
tetradic
#28135A #5A1322 #455A13 #135A4C
square
#28135A #5A1322 #455A13 #135A4C
split-complementary
#28135A #5A4C13 #225A13
monochromatic
#0B0519 #120827 #28135A #3E1E8D #5528BF

Accessibility & contrast

On white

15.78
#28135A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28135A
15.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28135A#FFFFFF#000000##FFFFFF
##28135A1.0015.781.3315.78
#FFFFFF15.781.0021.001.00
#0000001.3321.001.0021.00
##FFFFFF15.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00245C
Deuteranopia (green-blind)
#002159
Tritanopia (blue-blind)
#162635
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28135a;
/* rgb */ color: rgb(40, 19, 90);
/* oklch */ color: oklch(26.8% 0.118 289.4);
Tailwind
colors: {
  custom: {
    50: '#685389',
    500: '#28135a',
    950: '#000000',
  },
}
SCSS
$custom: #28135a;
$custom-light: #685389;
$custom-dark: #000000;
JSON
{
  "hex": "#28135a",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 90
  },
  "hsl": {
    "h": 257.746,
    "s": 65.138,
    "l": 21.373
  },
  "oklch": {
    "l": 0.26807,
    "c": 0.11812,
    "h": 289.4
  },
  "luminance": 0.01655
}

Semantic roles & 50–950 ramp

primary
#28135A
secondary
#779237
accent
#E840B6
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28135A

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

Preview Lab → · Contrast checker → · Palette generator →

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