#28156B#28156B

#28156B is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.9% C 0.138 H 283.8°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#28156B
RGBrgb(40, 21, 107)
HSLhsl(253, 67%, 25%)
HSVhsv(253, 80%, 42%)
CMYKcmyk(62.6%, 80.4%, 0%, 58%)
CIE-LABlab(15.74, 34.10, -46.47)
CIE-LCHlch(15.74, 57.64, 306.27°)
OKLaboklab(28.88% 0.0328 -0.1339)
OKLCHoklch(28.88% 0.138 283.8)
XYZxyz(3.7963, 2.0487, 14.1025)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28156B #586B15
analogous
#152D6B #28156B #53156B
triadic
#28156B #6B2815 #156B28
tetradic
#28156B #6B152D #586B15 #156B53
square
#28156B #6B152D #586B15 #156B53
split-complementary
#28156B #6B5315 #2D6B15
monochromatic
#0A051A #150B38 #28156B #3B1F9E #4E29D1

Accessibility & contrast

On white

14.90
#28156B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#28156B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28156B
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28156B#FFFFFF#000000##FFFFFF
##28156B1.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6D
Deuteranopia (green-blind)
#002469
Tritanopia (blue-blind)
#002E3F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28156b;
/* rgb */ color: rgb(40, 21, 107);
/* oklch */ color: oklch(28.9% 0.138 283.8);
Tailwind
colors: {
  custom: {
    50: '#6c5596',
    500: '#28156b',
    950: '#000000',
  },
}
SCSS
$custom: #28156b;
$custom-light: #6c5596;
$custom-dark: #000000;
JSON
{
  "hex": "#28156b",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 107
  },
  "hsl": {
    "h": 253.256,
    "s": 67.188,
    "l": 25.098
  },
  "oklch": {
    "l": 0.28883,
    "c": 0.13788,
    "h": 283.8
  },
  "luminance": 0.02049
}

Semantic roles & 50–950 ramp

primary
#28156B
secondary
#8BA23A
accent
#EA3EC4
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030D
muted
#7A787E

Preview Lab

Preview with #28156B

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

Preview Lab → · Contrast checker → · Palette generator →

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