#291581#291581

#291581 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.165 H 279.6°. Best body text is #FFFFFF at 13.83:1 contrast (WCAG AA passes).

Color values

HEX#291581
RGBrgb(41, 21, 129)
HSLhsl(251, 72%, 29%)
HSVhsv(251, 84%, 51%)
CMYKcmyk(68.2%, 83.7%, 0%, 49.4%)
CIE-LABlab(18.33, 41.15, -56.35)
CIE-LCHlch(18.33, 69.78, 306.14°)
OKLaboklab(31.45% 0.0275 -0.1627)
OKLCHoklch(31.45% 0.165 279.6)
XYZxyz(5.1438, 2.5923, 20.9939)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291581 #6D8115
analogous
#153781 #291581 #5F1581
triadic
#291581 #812915 #158129
tetradic
#291581 #811537 #6D8115 #15815F
square
#291581 #811537 #6D8115 #15815F
split-complementary
#291581 #815F15 #378115
monochromatic
#08041A #180C4C #291581 #3A1EB6 #5233DE

Accessibility & contrast

On white

13.83
#291581 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291581
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291581#FFFFFF#000000##FFFFFF
##2915811.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003184
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291581;
/* rgb */ color: rgb(41, 21, 129);
/* oklch */ color: oklch(31.4% 0.165 279.6);
Tailwind
colors: {
  custom: {
    50: '#7157a7',
    500: '#291581',
    950: '#000000',
  },
}
SCSS
$custom: #291581;
$custom-light: #7157a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291581",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 129
  },
  "hsl": {
    "h": 251.111,
    "s": 72,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31449,
    "c": 0.165,
    "h": 279.6
  },
  "luminance": 0.02593
}

Semantic roles & 50–950 ramp

primary
#291581
secondary
#9FB63C
accent
#EF39CD
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291581

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

Preview Lab → · Contrast checker → · Palette generator →

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