#291579#291579

#291579 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.155 H 281.2°. Best body text is #FFFFFF at 14.21:1 contrast (WCAG AA passes).

Color values

HEX#291579
RGBrgb(41, 21, 121)
HSLhsl(252, 70%, 28%)
HSVhsv(252, 83%, 47%)
CMYKcmyk(66.1%, 82.6%, 0%, 52.5%)
CIE-LABlab(17.40, 38.66, -52.78)
CIE-LCHlch(17.40, 65.43, 306.22°)
OKLaboklab(30.53% 0.0301 -0.1523)
OKLCHoklch(30.53% 0.155 281.2)
XYZxyz(4.6327, 2.3879, 18.3022)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291579 #657915
analogous
#153379 #291579 #5B1579
triadic
#291579 #792915 #157929
tetradic
#291579 #791533 #657915 #15795B
square
#291579 #791533 #657915 #15795B
split-complementary
#291579 #795B15 #337915
monochromatic
#09051A #170C45 #291579 #3B1EAD #502EDB

Accessibility & contrast

On white

14.21
#291579 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291579 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291579
14.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291579#FFFFFF#000000##FFFFFF
##2915791.0014.211.4814.21
#FFFFFF14.211.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291579;
/* rgb */ color: rgb(41, 21, 121);
/* oklch */ color: oklch(30.5% 0.155 281.2);
Tailwind
colors: {
  custom: {
    50: '#6f56a1',
    500: '#291579',
    950: '#000000',
  },
}
SCSS
$custom: #291579;
$custom-light: #6f56a1;
$custom-dark: #000000;
JSON
{
  "hex": "#291579",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 121
  },
  "hsl": {
    "h": 252,
    "s": 70.423,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30533,
    "c": 0.15526,
    "h": 281.2
  },
  "luminance": 0.02388
}

Semantic roles & 50–950 ramp

primary
#291579
secondary
#97AF3B
accent
#ED3BC9
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291579

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

Preview Lab → · Contrast checker → · Palette generator →

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