#291472#291472

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

Color values

HEX#291472
RGBrgb(41, 20, 114)
HSLhsl(253, 70%, 26%)
HSVhsv(253, 82%, 45%)
CMYKcmyk(64%, 82.5%, 0%, 55.3%)
CIE-LABlab(16.44, 36.97, -49.87)
CIE-LCHlch(16.44, 62.08, 306.55°)
OKLaboklab(29.63% 0.033 -0.1438)
OKLCHoklch(29.63% 0.148 282.9)
XYZxyz(4.2009, 2.1863, 16.1170)
Luminance0.0219 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291472 #5D7214
analogous
#142E72 #291472 #581472
triadic
#291472 #722914 #147229
tetradic
#291472 #72142E #5D7214 #147258
square
#291472 #72142E #5D7214 #147258
split-complementary
#291472 #725814 #2E7214
monochromatic
#09051A #160B3E #291472 #3C1DA6 #4F27D9

Accessibility & contrast

On white

14.61
#291472 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291472
14.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291472#FFFFFF#000000##FFFFFF
##2914721.0014.611.4414.61
#FFFFFF14.611.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.611.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291472;
/* rgb */ color: rgb(41, 20, 114);
/* oklch */ color: oklch(29.6% 0.148 282.9);
Tailwind
colors: {
  custom: {
    50: '#6e559c',
    500: '#291472',
    950: '#000000',
  },
}
SCSS
$custom: #291472;
$custom-light: #6e559c;
$custom-dark: #000000;
JSON
{
  "hex": "#291472",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 114
  },
  "hsl": {
    "h": 253.404,
    "s": 70.149,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29625,
    "c": 0.14755,
    "h": 282.9
  },
  "luminance": 0.02187
}

Semantic roles & 50–950 ramp

primary
#291472
secondary
#90A839
accent
#ED3BC5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291472

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

Preview Lab → · Contrast checker → · Palette generator →

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