#28155F#28155F

#28155F is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.6% C 0.122 H 287.2°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#28155F
RGBrgb(40, 21, 95)
HSLhsl(255, 64%, 23%)
HSVhsv(255, 78%, 37%)
CMYKcmyk(57.9%, 77.9%, 0%, 62.7%)
CIE-LABlab(14.48, 30.22, -40.62)
CIE-LCHlch(14.48, 50.63, 306.65°)
OKLaboklab(27.61% 0.0362 -0.1168)
OKLCHoklch(27.61% 0.122 287.2)
XYZxyz(3.2082, 1.8135, 11.0052)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28155F #4C5F15
analogous
#15275F #28155F #4D155F
triadic
#28155F #5F2815 #155F28
tetradic
#28155F #5F1527 #4C5F15 #155F4D
square
#28155F #5F1527 #4C5F15 #155F4D
split-complementary
#28155F #5F4D15 #275F15
monochromatic
#0B0619 #130A2D #28155F #3D2091 #522BC3

Accessibility & contrast

On white

15.41
#28155F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28155F
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28155F#FFFFFF#000000##FFFFFF
##28155F1.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002661
Deuteranopia (green-blind)
#00235E
Tritanopia (blue-blind)
#112938
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #28155f;
/* rgb */ color: rgb(40, 21, 95);
/* oklch */ color: oklch(27.6% 0.122 287.2);
Tailwind
colors: {
  custom: {
    50: '#69548d',
    500: '#28155f',
    950: '#000000',
  },
}
SCSS
$custom: #28155f;
$custom-light: #69548d;
$custom-dark: #000000;
JSON
{
  "hex": "#28155f",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 95
  },
  "hsl": {
    "h": 255.405,
    "s": 63.793,
    "l": 22.745
  },
  "oklch": {
    "l": 0.2761,
    "c": 0.12229,
    "h": 287.2
  },
  "luminance": 0.01814
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #28155F

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

Preview Lab → · Contrast checker → · Palette generator →

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