#28154A#28154A

#28154A is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.6% C 0.094 H 295.5°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#28154A
RGBrgb(40, 21, 74)
HSLhsl(262, 56%, 19%)
HSVhsv(262, 72%, 29%)
CMYKcmyk(45.9%, 71.6%, 0%, 71%)
CIE-LABlab(12.49, 23.45, -29.59)
CIE-LCHlch(12.49, 37.75, 308.39°)
OKLaboklab(25.58% 0.0403 -0.0844)
OKLCHoklch(25.58% 0.094 295.5)
XYZxyz(2.3789, 1.4818, 6.6379)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28154A #374A15
analogous
#151C4A #28154A #42154A
triadic
#28154A #4A2815 #154A28
tetradic
#28154A #4A151C #374A15 #154A42
square
#28154A #4A151C #374A15 #154A42
split-complementary
#28154A #4A4215 #1C4A15
monochromatic
#0D0718 #0E071A #28154A #42237A #5C30A9

Accessibility & contrast

On white

16.20
#28154A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#28154A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #28154A
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28154A#FFFFFF#000000##FFFFFF
##28154A1.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214C
Deuteranopia (green-blind)
#002049
Tritanopia (blue-blind)
#1F212D
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #28154a;
/* rgb */ color: rgb(40, 21, 74);
/* oklch */ color: oklch(25.6% 0.094 295.5);
Tailwind
colors: {
  custom: {
    50: '#65537d',
    500: '#28154a',
    950: '#000000',
  },
}
SCSS
$custom: #28154a;
$custom-light: #65537d;
$custom-dark: #000000;
JSON
{
  "hex": "#28154a",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 74
  },
  "hsl": {
    "h": 261.509,
    "s": 55.789,
    "l": 18.627
  },
  "oklch": {
    "l": 0.25576,
    "c": 0.09355,
    "h": 295.5
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#28154A
secondary
#688239
accent
#DF49A9
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #28154A

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

Preview Lab → · Contrast checker → · Palette generator →

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