#281578#281578

#281578 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.154 H 280.8°. Best body text is #FFFFFF at 14.30:1 contrast (WCAG AA passes).

Color values

HEX#281578
RGBrgb(40, 21, 120)
HSLhsl(252, 70%, 28%)
HSVhsv(252, 83%, 47%)
CMYKcmyk(66.7%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.19, 38.24, -52.49)
CIE-LCHlch(17.19, 64.94, 306.07°)
OKLaboklab(30.33% 0.0288 -0.1515)
OKLCHoklch(30.33% 0.154 280.8)
XYZxyz(4.5323, 2.3432, 17.9791)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#281578 #657815
analogous
#153478 #281578 #591578
triadic
#281578 #782815 #157828
tetradic
#281578 #781534 #657815 #157859
square
#281578 #781534 #657815 #157859
split-complementary
#281578 #785915 #347815
monochromatic
#09051A #170C44 #281578 #391EAC #4E2DDA

Accessibility & contrast

On white

14.30
#281578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#281578 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #281578
14.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##281578#FFFFFF#000000##FFFFFF
##2815781.0014.301.4714.30
#FFFFFF14.301.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #281578;
/* rgb */ color: rgb(40, 21, 120);
/* oklch */ color: oklch(30.3% 0.154 280.8);
Tailwind
colors: {
  custom: {
    50: '#6e56a0',
    500: '#281578',
    950: '#000000',
  },
}
SCSS
$custom: #281578;
$custom-light: #6e56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#281578",
  "rgb": {
    "r": 40,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 251.515,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3033,
    "c": 0.15421,
    "h": 280.8
  },
  "luminance": 0.02344
}

Semantic roles & 50–950 ramp

primary
#281578
secondary
#98AE3B
accent
#ED3BCB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #281578

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

Preview Lab → · Contrast checker → · Palette generator →

#281578 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva