#28135C#28135C

#28135C is a dark, vivid violet. Relative luminance 0.017; OKLCH L 27.0% C 0.121 H 288.7°. Best body text is #FFFFFF at 15.70:1 contrast (WCAG AA passes).

Color values

HEX#28135C
RGBrgb(40, 19, 92)
HSLhsl(257, 66%, 22%)
HSVhsv(257, 79%, 36%)
CMYKcmyk(56.5%, 79.3%, 0%, 63.9%)
CIE-LABlab(13.76, 30.40, -39.78)
CIE-LCHlch(13.76, 50.07, 307.39°)
OKLaboklab(27.01% 0.0388 -0.1143)
OKLCHoklch(27.01% 0.121 288.7)
XYZxyz(3.0391, 1.6894, 10.2891)
Luminance0.0169 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28135C #475C13
analogous
#13235C #28135C #4D135C
triadic
#28135C #5C2813 #135C28
tetradic
#28135C #5C1323 #475C13 #135C4D
square
#28135C #5C1323 #475C13 #135C4D
split-complementary
#28135C #5C4D13 #235C13
monochromatic
#0B0519 #120929 #28135C #3E1D8F #5428C1

Accessibility & contrast

On white

15.70
#28135C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28135C
15.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28135C#FFFFFF#000000##FFFFFF
##28135C1.0015.701.3415.70
#FFFFFF15.701.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255E
Deuteranopia (green-blind)
#00215B
Tritanopia (blue-blind)
#142736
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #28135c;
/* rgb */ color: rgb(40, 19, 92);
/* oklch */ color: oklch(27.0% 0.121 288.7);
Tailwind
colors: {
  custom: {
    50: '#69538b',
    500: '#28135c',
    950: '#000000',
  },
}
SCSS
$custom: #28135c;
$custom-light: #69538b;
$custom-dark: #000000;
JSON
{
  "hex": "#28135c",
  "rgb": {
    "r": 40,
    "g": 19,
    "b": 92
  },
  "hsl": {
    "h": 257.26,
    "s": 65.766,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27014,
    "c": 0.12074,
    "h": 288.7
  },
  "luminance": 0.0169
}

Semantic roles & 50–950 ramp

primary
#28135C
secondary
#799437
accent
#E93FB8
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #28135C

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

Preview Lab → · Contrast checker → · Palette generator →

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