#28155A#28155A

#28155A is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.1% C 0.116 H 288.9°. Best body text is #FFFFFF at 15.61:1 contrast (WCAG AA passes).

Color values

HEX#28155A
RGBrgb(40, 21, 90)
HSLhsl(257, 62%, 22%)
HSVhsv(257, 77%, 35%)
CMYKcmyk(55.6%, 76.7%, 0%, 64.7%)
CIE-LABlab(13.98, 28.60, -38.09)
CIE-LCHlch(13.98, 47.63, 306.90°)
OKLaboklab(27.1% 0.0374 -0.1094)
OKLCHoklch(27.1% 0.116 288.9)
XYZxyz(2.9882, 1.7255, 9.8465)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28155A #475A15
analogous
#15255A #28155A #4B155A
triadic
#28155A #5A2815 #155A28
tetradic
#28155A #5A1525 #475A15 #155A4B
square
#28155A #5A1525 #475A15 #155A4B
split-complementary
#28155A #5A4B15 #255A15
monochromatic
#0B0619 #120928 #28155A #3E218C #542CBD

Accessibility & contrast

On white

15.61
#28155A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#28155A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28155A
15.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28155A#FFFFFF#000000##FFFFFF
##28155A1.0015.611.3515.61
#FFFFFF15.611.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255C
Deuteranopia (green-blind)
#002259
Tritanopia (blue-blind)
#162736
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #28155a;
/* rgb */ color: rgb(40, 21, 90);
/* oklch */ color: oklch(27.1% 0.116 288.9);
Tailwind
colors: {
  custom: {
    50: '#685489',
    500: '#28155a',
    950: '#000000',
  },
}
SCSS
$custom: #28155a;
$custom-light: #685489;
$custom-dark: #000000;
JSON
{
  "hex": "#28155a",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 90
  },
  "hsl": {
    "h": 256.522,
    "s": 62.162,
    "l": 21.765
  },
  "oklch": {
    "l": 0.27101,
    "c": 0.11562,
    "h": 288.9
  },
  "luminance": 0.01726
}

Semantic roles & 50–950 ramp

primary
#28155A
secondary
#799239
accent
#E543B8
background
#F6F4F8
surface
#EBE8F0
border
#C6C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #28155A

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

Preview Lab → · Contrast checker → · Palette generator →

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