#291582#291582

#291582 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.166 H 279.4°. Best body text is #FFFFFF at 13.78:1 contrast (WCAG AA passes).

Color values

HEX#291582
RGBrgb(41, 21, 130)
HSLhsl(251, 72%, 30%)
HSVhsv(251, 84%, 51%)
CMYKcmyk(68.5%, 83.8%, 0%, 49%)
CIE-LABlab(18.45, 41.46, -56.79)
CIE-LCHlch(18.45, 70.31, 306.13°)
OKLaboklab(31.57% 0.0271 -0.164)
OKLCHoklch(31.57% 0.166 279.4)
XYZxyz(5.2106, 2.6190, 21.3457)
Luminance0.0262 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291582 #6E8215
analogous
#153882 #291582 #601582
triadic
#291582 #822915 #158229
tetradic
#291582 #821538 #6E8215 #158260
square
#291582 #821538 #6E8215 #158260
split-complementary
#291582 #826015 #388215
monochromatic
#08041A #180C4D #291582 #3A1EB7 #5333DE

Accessibility & contrast

On white

13.78
#291582 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#291582 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291582
13.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291582#FFFFFF#000000##FFFFFF
##2915821.0013.781.5213.78
#FFFFFF13.781.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291582;
/* rgb */ color: rgb(41, 21, 130);
/* oklch */ color: oklch(31.6% 0.166 279.4);
Tailwind
colors: {
  custom: {
    50: '#7157a8',
    500: '#291582',
    950: '#000000',
  },
}
SCSS
$custom: #291582;
$custom-light: #7157a8;
$custom-dark: #000000;
JSON
{
  "hex": "#291582",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 130
  },
  "hsl": {
    "h": 251.009,
    "s": 72.185,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31565,
    "c": 0.16621,
    "h": 279.4
  },
  "luminance": 0.02619
}

Semantic roles & 50–950 ramp

primary
#291582
secondary
#A0B73C
accent
#EF39CE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291582

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

Preview Lab → · Contrast checker → · Palette generator →

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