#291572#291572

#291572 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.147 H 282.7°. Best body text is #FFFFFF at 14.54:1 contrast (WCAG AA passes).

Color values

HEX#291572
RGBrgb(41, 21, 114)
HSLhsl(253, 69%, 26%)
HSVhsv(253, 82%, 45%)
CMYKcmyk(64%, 81.6%, 0%, 55.3%)
CIE-LABlab(16.61, 36.46, -49.58)
CIE-LCHlch(16.61, 61.54, 306.33°)
OKLaboklab(29.75% 0.0323 -0.143)
OKLCHoklch(29.75% 0.147 282.7)
XYZxyz(4.2189, 2.2224, 16.1230)
Luminance0.0222 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291572 #5E7215
analogous
#153072 #291572 #581572
triadic
#291572 #722915 #157229
tetradic
#291572 #721530 #5E7215 #157258
square
#291572 #721530 #5E7215 #157258
split-complementary
#291572 #725815 #307215
monochromatic
#09051A #160B3E #291572 #3C1FA6 #4F2AD8

Accessibility & contrast

On white

14.54
#291572 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291572
14.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291572#FFFFFF#000000##FFFFFF
##2915721.0014.541.4414.54
#FFFFFF14.541.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291572;
/* rgb */ color: rgb(41, 21, 114);
/* oklch */ color: oklch(29.7% 0.147 282.7);
Tailwind
colors: {
  custom: {
    50: '#6e569c',
    500: '#291572',
    950: '#000000',
  },
}
SCSS
$custom: #291572;
$custom-light: #6e569c;
$custom-dark: #000000;
JSON
{
  "hex": "#291572",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 114
  },
  "hsl": {
    "h": 252.903,
    "s": 68.889,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29749,
    "c": 0.14659,
    "h": 282.7
  },
  "luminance": 0.02223
}

Semantic roles & 50–950 ramp

primary
#291572
secondary
#91A83B
accent
#EC3CC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291572

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

Preview Lab → · Contrast checker → · Palette generator →

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