#28155E#28155E

#28155E is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.121 H 287.5°. Best body text is #FFFFFF at 15.45:1 contrast (WCAG AA passes).

Color values

HEX#28155E
RGBrgb(40, 21, 94)
HSLhsl(256, 63%, 23%)
HSVhsv(256, 78%, 37%)
CMYKcmyk(57.4%, 77.7%, 0%, 63.1%)
CIE-LABlab(14.37, 29.90, -40.12)
CIE-LCHlch(14.37, 50.03, 306.70°)
OKLaboklab(27.51% 0.0364 -0.1153)
OKLCHoklch(27.51% 0.121 287.5)
XYZxyz(3.1630, 1.7954, 10.7674)
Luminance0.0180 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28155E #4B5E15
analogous
#15275E #28155E #4C155E
triadic
#28155E #5E2815 #155E28
tetradic
#28155E #5E1527 #4B5E15 #155E4C
square
#28155E #5E1527 #4B5E15 #155E4C
split-complementary
#28155E #5E4C15 #275E15
monochromatic
#0B0619 #130A2C #28155E #3D2090 #532BC2

Accessibility & contrast

On white

15.45
#28155E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28155E
15.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28155E#FFFFFF#000000##FFFFFF
##28155E1.0015.451.3615.45
#FFFFFF15.451.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002660
Deuteranopia (green-blind)
#00225D
Tritanopia (blue-blind)
#122938
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28155e;
/* rgb */ color: rgb(40, 21, 94);
/* oklch */ color: oklch(27.5% 0.121 287.5);
Tailwind
colors: {
  custom: {
    50: '#69548c',
    500: '#28155e',
    950: '#000000',
  },
}
SCSS
$custom: #28155e;
$custom-light: #69548c;
$custom-dark: #000000;
JSON
{
  "hex": "#28155e",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 94
  },
  "hsl": {
    "h": 255.616,
    "s": 63.478,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27507,
    "c": 0.12096,
    "h": 287.5
  },
  "luminance": 0.01796
}

Semantic roles & 50–950 ramp

primary
#28155E
secondary
#7D9539
accent
#E741BC
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28155E

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

Preview Lab → · Contrast checker → · Palette generator →

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