#291371#291371

#291371 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.147 H 283.3°. Best body text is #FFFFFF at 14.73:1 contrast (WCAG AA passes).

Color values

HEX#291371
RGBrgb(41, 19, 113)
HSLhsl(254, 71%, 26%)
HSVhsv(254, 83%, 44%)
CMYKcmyk(63.7%, 83.2%, 0%, 55.7%)
CIE-LABlab(16.15, 37.16, -49.70)
CIE-LCHlch(16.15, 62.05, 306.79°)
OKLaboklab(29.39% 0.0339 -0.1433)
OKLCHoklch(29.39% 0.147 283.3)
XYZxyz(4.1270, 2.1291, 15.8131)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291371 #5B7113
analogous
#132C71 #291371 #581371
triadic
#291371 #712913 #137129
tetradic
#291371 #71132C #5B7113 #137158
square
#291371 #71132C #5B7113 #137158
split-complementary
#291371 #715813 #2C7113
monochromatic
#0A041A #160A3D #291371 #3C1CA5 #4F25DA

Accessibility & contrast

On white

14.73
#291371 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291371 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291371
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291371#FFFFFF#000000##FFFFFF
##2913711.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B74
Deuteranopia (green-blind)
#00256F
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291371;
/* rgb */ color: rgb(41, 19, 113);
/* oklch */ color: oklch(29.4% 0.147 283.3);
Tailwind
colors: {
  custom: {
    50: '#6d549b',
    500: '#291371',
    950: '#000000',
  },
}
SCSS
$custom: #291371;
$custom-light: #6d549b;
$custom-dark: #000000;
JSON
{
  "hex": "#291371",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 113
  },
  "hsl": {
    "h": 254.043,
    "s": 71.212,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29393,
    "c": 0.14725,
    "h": 283.3
  },
  "luminance": 0.02129
}

Semantic roles & 50–950 ramp

primary
#291371
secondary
#8EA838
accent
#EE3AC4
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291371

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

Preview Lab → · Contrast checker → · Palette generator →

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