#291072#291072

#291072 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.2% C 0.151 H 283.5°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#291072
RGBrgb(41, 16, 114)
HSLhsl(255, 75%, 25%)
HSVhsv(255, 86%, 45%)
CMYKcmyk(64%, 86%, 0%, 55.3%)
CIE-LABlab(15.78, 38.88, -50.95)
CIE-LCHlch(15.78, 64.09, 307.34°)
OKLaboklab(29.17% 0.0353 -0.1469)
OKLCHoklch(29.17% 0.151 283.5)
XYZxyz(4.1361, 2.0566, 16.0953)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291072 #597210
analogous
#102872 #291072 #5A1072
triadic
#291072 #722910 #107229
tetradic
#291072 #721028 #597210 #10725A
square
#291072 #721028 #597210 #10725A
split-complementary
#291072 #725A10 #287210
monochromatic
#0A041B #16083C #291072 #3C18A8 #501FDD

Accessibility & contrast

On white

14.88
#291072 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#291072 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291072
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291072#FFFFFF#000000##FFFFFF
##2910721.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291072;
/* rgb */ color: rgb(41, 16, 114);
/* oklch */ color: oklch(29.2% 0.151 283.5);
Tailwind
colors: {
  custom: {
    50: '#6e539c',
    500: '#291072',
    950: '#000000',
  },
}
SCSS
$custom: #291072;
$custom-light: #6e539c;
$custom-dark: #000000;
JSON
{
  "hex": "#291072",
  "rgb": {
    "r": 41,
    "g": 16,
    "b": 114
  },
  "hsl": {
    "h": 255.306,
    "s": 75.385,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29172,
    "c": 0.15111,
    "h": 283.5
  },
  "luminance": 0.02057
}

Semantic roles & 50–950 ramp

primary
#291072
secondary
#8CA934
accent
#F236C2
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291072

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

Preview Lab → · Contrast checker → · Palette generator →

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