#28155D#28155D

#28155D is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.4% C 0.120 H 287.8°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#28155D
RGBrgb(40, 21, 93)
HSLhsl(256, 63%, 22%)
HSVhsv(256, 77%, 36%)
CMYKcmyk(57%, 77.4%, 0%, 63.5%)
CIE-LABlab(14.27, 29.58, -39.61)
CIE-LCHlch(14.27, 49.44, 306.75°)
OKLaboklab(27.41% 0.0367 -0.1139)
OKLCHoklch(27.41% 0.12 287.8)
XYZxyz(3.1184, 1.7776, 10.5326)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28155D #4A5D15
analogous
#15265D #28155D #4C155D
triadic
#28155D #5D2815 #155D28
tetradic
#28155D #5D1526 #4A5D15 #155D4C
square
#28155D #5D1526 #4A5D15 #155D4C
split-complementary
#28155D #5D4C15 #265D15
monochromatic
#0B0619 #130A2B #28155D #3D208F #532CC1

Accessibility & contrast

On white

15.49
#28155D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#28155D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28155D
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28155D#FFFFFF#000000##FFFFFF
##28155D1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265F
Deuteranopia (green-blind)
#00225C
Tritanopia (blue-blind)
#132837
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28155d;
/* rgb */ color: rgb(40, 21, 93);
/* oklch */ color: oklch(27.4% 0.120 287.8);
Tailwind
colors: {
  custom: {
    50: '#69548c',
    500: '#28155d',
    950: '#000000',
  },
}
SCSS
$custom: #28155d;
$custom-light: #69548c;
$custom-dark: #000000;
JSON
{
  "hex": "#28155d",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 93
  },
  "hsl": {
    "h": 255.833,
    "s": 63.158,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27405,
    "c": 0.11963,
    "h": 287.8
  },
  "luminance": 0.01778
}

Semantic roles & 50–950 ramp

primary
#28155D
secondary
#7C9439
accent
#E642BB
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28155D

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

Preview Lab → · Contrast checker → · Palette generator →

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