#28156C#28156C

#28156C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.139 H 283.5°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#28156C
RGBrgb(40, 21, 108)
HSLhsl(253, 67%, 25%)
HSVhsv(253, 81%, 42%)
CMYKcmyk(63%, 80.6%, 0%, 57.6%)
CIE-LABlab(15.85, 34.42, -46.94)
CIE-LCHlch(15.85, 58.21, 306.25°)
OKLaboklab(28.99% 0.0325 -0.1353)
OKLCHoklch(28.99% 0.139 283.5)
XYZxyz(3.8492, 2.0699, 14.3811)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28156C #596C15
analogous
#152E6C #28156C #53156C
triadic
#28156C #6C2815 #156C28
tetradic
#28156C #6C152E #596C15 #156C53
square
#28156C #6C152E #596C15 #156C53
split-complementary
#28156C #6C5315 #2E6C15
monochromatic
#09051A #150B39 #28156C #3B1F9F #4E29D2

Accessibility & contrast

On white

14.85
#28156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28156C
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28156C#FFFFFF#000000##FFFFFF
##28156C1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6E
Deuteranopia (green-blind)
#00256A
Tritanopia (blue-blind)
#002E40
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #28156c;
/* rgb */ color: rgb(40, 21, 108);
/* oklch */ color: oklch(29.0% 0.139 283.5);
Tailwind
colors: {
  custom: {
    50: '#6c5597',
    500: '#28156c',
    950: '#000000',
  },
}
SCSS
$custom: #28156c;
$custom-light: #6c5597;
$custom-dark: #000000;
JSON
{
  "hex": "#28156c",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 253.103,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.28992,
    "c": 0.13916,
    "h": 283.5
  },
  "luminance": 0.0207
}

Semantic roles & 50–950 ramp

primary
#28156C
secondary
#8CA33A
accent
#EA3DC5
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#07030E
muted
#7A787E

Preview Lab

Preview with #28156C

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

Preview Lab → · Contrast checker → · Palette generator →

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