#291571#291571

#291571 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.145 H 283.0°. Best body text is #FFFFFF at 14.58:1 contrast (WCAG AA passes).

Color values

HEX#291571
RGBrgb(41, 21, 113)
HSLhsl(253, 69%, 26%)
HSVhsv(253, 81%, 44%)
CMYKcmyk(63.7%, 81.4%, 0%, 55.7%)
CIE-LABlab(16.50, 36.14, -49.12)
CIE-LCHlch(16.50, 60.98, 306.35°)
OKLaboklab(29.64% 0.0326 -0.1416)
OKLCHoklch(29.64% 0.145 283)
XYZxyz(4.1623, 2.1997, 15.8248)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291571 #5D7115
analogous
#152F71 #291571 #571571
triadic
#291571 #712915 #157129
tetradic
#291571 #71152F #5D7115 #157157
square
#291571 #71152F #5D7115 #157157
split-complementary
#291571 #715715 #2F7115
monochromatic
#09051A #160B3D #291571 #3C1FA5 #4F29D7

Accessibility & contrast

On white

14.58
#291571 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#291571 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291571
14.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291571#FFFFFF#000000##FFFFFF
##2915711.0014.581.4414.58
#FFFFFF14.581.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291571;
/* rgb */ color: rgb(41, 21, 113);
/* oklch */ color: oklch(29.6% 0.145 283.0);
Tailwind
colors: {
  custom: {
    50: '#6d569b',
    500: '#291571',
    950: '#000000',
  },
}
SCSS
$custom: #291571;
$custom-light: #6d569b;
$custom-dark: #000000;
JSON
{
  "hex": "#291571",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 113
  },
  "hsl": {
    "h": 253.043,
    "s": 68.657,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29638,
    "c": 0.14534,
    "h": 283
  },
  "luminance": 0.022
}

Semantic roles & 50–950 ramp

primary
#291571
secondary
#90A73B
accent
#EB3CC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291571

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

Preview Lab → · Contrast checker → · Palette generator →

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