#28155B#28155B

#28155B is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.2% C 0.117 H 288.5°. Best body text is #FFFFFF at 15.57:1 contrast (WCAG AA passes).

Color values

HEX#28155B
RGBrgb(40, 21, 91)
HSLhsl(256, 63%, 22%)
HSVhsv(256, 77%, 36%)
CMYKcmyk(56%, 76.9%, 0%, 64.3%)
CIE-LABlab(14.07, 28.93, -38.60)
CIE-LCHlch(14.07, 48.24, 306.85°)
OKLaboklab(27.2% 0.0372 -0.1109)
OKLCHoklch(27.2% 0.117 288.5)
XYZxyz(3.0310, 1.7426, 10.0722)
Luminance0.0174 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28155B #485B15
analogous
#15255B #28155B #4B155B
triadic
#28155B #5B2815 #155B28
tetradic
#28155B #5B1525 #485B15 #155B4B
square
#28155B #5B1525 #485B15 #155B4B
split-complementary
#28155B #5B4B15 #255B15
monochromatic
#0B0619 #120A29 #28155B #3E208D #542CBE

Accessibility & contrast

On white

15.57
#28155B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#28155B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28155B
15.57:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28155B#FFFFFF#000000##FFFFFF
##28155B1.0015.571.3515.57
#FFFFFF15.571.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.571.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255D
Deuteranopia (green-blind)
#00225A
Tritanopia (blue-blind)
#152836
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28155b;
/* rgb */ color: rgb(40, 21, 91);
/* oklch */ color: oklch(27.2% 0.117 288.5);
Tailwind
colors: {
  custom: {
    50: '#68548a',
    500: '#28155b',
    950: '#000000',
  },
}
SCSS
$custom: #28155b;
$custom-light: #68548a;
$custom-dark: #000000;
JSON
{
  "hex": "#28155b",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 91
  },
  "hsl": {
    "h": 256.286,
    "s": 62.5,
    "l": 21.961
  },
  "oklch": {
    "l": 0.27201,
    "c": 0.11696,
    "h": 288.5
  },
  "luminance": 0.01743
}

Semantic roles & 50–950 ramp

primary
#28155B
secondary
#7A9239
accent
#E642B9
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28155B

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

Preview Lab → · Contrast checker → · Palette generator →

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