#291372#291372

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

Color values

HEX#291372
RGBrgb(41, 19, 114)
HSLhsl(254, 71%, 26%)
HSVhsv(254, 83%, 45%)
CMYKcmyk(64%, 83.3%, 0%, 55.3%)
CIE-LABlab(16.26, 37.47, -50.16)
CIE-LCHlch(16.26, 62.60, 306.76°)
OKLaboklab(29.51% 0.0336 -0.1446)
OKLCHoklch(29.51% 0.148 283.1)
XYZxyz(4.1836, 2.1518, 16.1112)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291372 #5C7213
analogous
#132C72 #291372 #581372
triadic
#291372 #722913 #137229
tetradic
#291372 #72132C #5C7213 #137258
square
#291372 #72132C #5C7213 #137258
split-complementary
#291372 #725813 #2C7213
monochromatic
#09041A #160A3E #291372 #3C1CA6 #4F25DB

Accessibility & contrast

On white

14.68
#291372 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291372
14.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291372#FFFFFF#000000##FFFFFF
##2913721.0014.681.4314.68
#FFFFFF14.681.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.681.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291372;
/* rgb */ color: rgb(41, 19, 114);
/* oklch */ color: oklch(29.5% 0.148 283.1);
Tailwind
colors: {
  custom: {
    50: '#6e559c',
    500: '#291372',
    950: '#000000',
  },
}
SCSS
$custom: #291372;
$custom-light: #6e559c;
$custom-dark: #000000;
JSON
{
  "hex": "#291372",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 114
  },
  "hsl": {
    "h": 253.895,
    "s": 71.429,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29506,
    "c": 0.14849,
    "h": 283.1
  },
  "luminance": 0.02152
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291372

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

Preview Lab → · Contrast checker → · Palette generator →

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