#291481#291481

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

Color values

HEX#291481
RGBrgb(41, 20, 129)
HSLhsl(252, 73%, 29%)
HSVhsv(252, 84%, 51%)
CMYKcmyk(68.2%, 84.5%, 0%, 49.4%)
CIE-LABlab(18.17, 41.62, -56.62)
CIE-LCHlch(18.17, 70.26, 306.32°)
OKLaboklab(31.34% 0.028 -0.1635)
OKLCHoklch(31.34% 0.166 279.7)
XYZxyz(5.1258, 2.5563, 20.9879)
Luminance0.0256 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291481 #6C8114
analogous
#143681 #291481 #601481
triadic
#291481 #812914 #148129
tetradic
#291481 #811436 #6C8114 #148160
square
#291481 #811436 #6C8114 #148160
split-complementary
#291481 #816014 #368114
monochromatic
#08041A #180C4C #291481 #3A1CB6 #5230DF

Accessibility & contrast

On white

13.89
#291481 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291481
13.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291481#FFFFFF#000000##FFFFFF
##2914811.0013.891.5113.89
#FFFFFF13.891.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003084
Deuteranopia (green-blind)
#00287F
Tritanopia (blue-blind)
#00364C
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291481;
/* rgb */ color: rgb(41, 20, 129);
/* oklch */ color: oklch(31.3% 0.166 279.7);
Tailwind
colors: {
  custom: {
    50: '#7156a7',
    500: '#291481',
    950: '#000000',
  },
}
SCSS
$custom: #291481;
$custom-light: #7156a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291481",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 129
  },
  "hsl": {
    "h": 251.56,
    "s": 73.154,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31339,
    "c": 0.16583,
    "h": 279.7
  },
  "luminance": 0.02557
}

Semantic roles & 50–950 ramp

primary
#291481
secondary
#9EB63B
accent
#F038CC
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291481

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

Preview Lab → · Contrast checker → · Palette generator →

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