#291580#291580

#291580 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.164 H 279.8°. Best body text is #FFFFFF at 13.88:1 contrast (WCAG AA passes).

Color values

HEX#291580
RGBrgb(41, 21, 128)
HSLhsl(251, 72%, 29%)
HSVhsv(251, 84%, 50%)
CMYKcmyk(68%, 83.6%, 0%, 49.8%)
CIE-LABlab(18.21, 40.84, -55.91)
CIE-LCHlch(18.21, 69.24, 306.15°)
OKLaboklab(31.33% 0.0278 -0.1614)
OKLCHoklch(31.33% 0.164 279.8)
XYZxyz(5.0777, 2.5658, 20.6456)
Luminance0.0257 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291580 #6C8015
analogous
#153780 #291580 #5F1580
triadic
#291580 #802915 #158029
tetradic
#291580 #801537 #6C8015 #15805F
square
#291580 #801537 #6C8015 #15805F
split-complementary
#291580 #805F15 #378015
monochromatic
#08041A #180C4B #291580 #3A1EB5 #5232DD

Accessibility & contrast

On white

13.88
#291580 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#291580 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291580
13.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291580#FFFFFF#000000##FFFFFF
##2915801.0013.881.5113.88
#FFFFFF13.881.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003083
Deuteranopia (green-blind)
#00287E
Tritanopia (blue-blind)
#00364B
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291580;
/* rgb */ color: rgb(41, 21, 128);
/* oklch */ color: oklch(31.3% 0.164 279.8);
Tailwind
colors: {
  custom: {
    50: '#7157a6',
    500: '#291580',
    950: '#000000',
  },
}
SCSS
$custom: #291580;
$custom-light: #7157a6;
$custom-dark: #000000;
JSON
{
  "hex": "#291580",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 128
  },
  "hsl": {
    "h": 251.215,
    "s": 71.812,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31334,
    "c": 0.1638,
    "h": 279.8
  },
  "luminance": 0.02566
}

Semantic roles & 50–950 ramp

primary
#291580
secondary
#9EB53C
accent
#EF39CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #291580

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

Preview Lab → · Contrast checker → · Palette generator →

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