#28154C#28154C

#28154C is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.096 H 294.5°. Best body text is #FFFFFF at 16.13:1 contrast (WCAG AA passes).

Color values

HEX#28154C
RGBrgb(40, 21, 76)
HSLhsl(261, 57%, 19%)
HSVhsv(261, 72%, 30%)
CMYKcmyk(47.4%, 72.4%, 0%, 70.2%)
CIE-LABlab(12.67, 24.09, -30.69)
CIE-LCHlch(12.67, 39.01, 308.13°)
OKLaboklab(25.76% 0.04 -0.0877)
OKLCHoklch(25.76% 0.096 294.5)
XYZxyz(2.4474, 1.5092, 6.9984)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#28154C #394C15
analogous
#151E4C #28154C #44154C
triadic
#28154C #4C2815 #154C28
tetradic
#28154C #4C151E #394C15 #154C44
square
#28154C #4C151E #394C15 #154C44
split-complementary
#28154C #4C4415 #1E4C15
monochromatic
#0D0718 #0F081C #28154C #41227C #5A2FAC

Accessibility & contrast

On white

16.13
#28154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #28154C
16.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##28154C#FFFFFF#000000##FFFFFF
##28154C1.0016.131.3016.13
#FFFFFF16.131.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00214E
Deuteranopia (green-blind)
#00204B
Tritanopia (blue-blind)
#1E222E
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #28154c;
/* rgb */ color: rgb(40, 21, 76);
/* oklch */ color: oklch(25.8% 0.096 294.5);
Tailwind
colors: {
  custom: {
    50: '#66537e',
    500: '#28154c',
    950: '#000000',
  },
}
SCSS
$custom: #28154c;
$custom-light: #66537e;
$custom-dark: #000000;
JSON
{
  "hex": "#28154c",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 260.727,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.25757,
    "c": 0.09637,
    "h": 294.5
  },
  "luminance": 0.01509
}

Semantic roles & 50–950 ramp

primary
#28154C
secondary
#6A8439
accent
#E048AB
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#06020A
muted
#7A787C

Preview Lab

Preview with #28154C

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

Preview Lab → · Contrast checker → · Palette generator →

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