#291578#291578

#291578 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.154 H 281.4°. Best body text is #FFFFFF at 14.26:1 contrast (WCAG AA passes).

Color values

HEX#291578
RGBrgb(41, 21, 120)
HSLhsl(252, 70%, 28%)
HSVhsv(252, 83%, 47%)
CMYKcmyk(65.8%, 82.5%, 0%, 52.9%)
CIE-LABlab(17.29, 38.35, -52.33)
CIE-LCHlch(17.29, 64.88, 306.23°)
OKLaboklab(30.42% 0.0304 -0.151)
OKLCHoklch(30.42% 0.154 281.4)
XYZxyz(4.5717, 2.3635, 17.9809)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291578 #647815
analogous
#153378 #291578 #5A1578
triadic
#291578 #782915 #157829
tetradic
#291578 #781533 #647815 #15785A
square
#291578 #781533 #647815 #15785A
split-complementary
#291578 #785A15 #337815
monochromatic
#09051A #170C44 #291578 #3B1EAC #502DDA

Accessibility & contrast

On white

14.26
#291578 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291578
14.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291578#FFFFFF#000000##FFFFFF
##2915781.0014.261.4714.26
#FFFFFF14.261.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.261.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: #291578;
/* rgb */ color: rgb(41, 21, 120);
/* oklch */ color: oklch(30.4% 0.154 281.4);
Tailwind
colors: {
  custom: {
    50: '#6f56a0',
    500: '#291578',
    950: '#000000',
  },
}
SCSS
$custom: #291578;
$custom-light: #6f56a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291578",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 120
  },
  "hsl": {
    "h": 252.121,
    "s": 70.213,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3042,
    "c": 0.15403,
    "h": 281.4
  },
  "luminance": 0.02364
}

Semantic roles & 50–950 ramp

primary
#291578
secondary
#96AE3B
accent
#ED3BC9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291578

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

Preview Lab → · Contrast checker → · Palette generator →

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