#291071#291071

#291071 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 29.1% C 0.150 H 283.8°. Best body text is #FFFFFF at 14.93:1 contrast (WCAG AA passes).

Color values

HEX#291071
RGBrgb(41, 16, 113)
HSLhsl(255, 75%, 25%)
HSVhsv(255, 86%, 44%)
CMYKcmyk(63.7%, 85.8%, 0%, 55.7%)
CIE-LABlab(15.66, 38.58, -50.50)
CIE-LCHlch(15.66, 63.55, 307.38°)
OKLaboklab(29.06% 0.0357 -0.1456)
OKLCHoklch(29.06% 0.15 283.8)
XYZxyz(4.0795, 2.0340, 15.7972)
Luminance0.0203 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291071 #587110
analogous
#102771 #291071 #591071
triadic
#291071 #712910 #107129
tetradic
#291071 #711027 #587110 #107159
square
#291071 #711027 #587110 #107159
split-complementary
#291071 #715910 #277110
monochromatic
#0A041B #16083B #291071 #3C18A7 #501FDC

Accessibility & contrast

On white

14.93
#291071 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291071
14.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291071#FFFFFF#000000##FFFFFF
##2910711.0014.931.4114.93
#FFFFFF14.931.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A74
Deuteranopia (green-blind)
#00246F
Tritanopia (blue-blind)
#002E42
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291071;
/* rgb */ color: rgb(41, 16, 113);
/* oklch */ color: oklch(29.1% 0.150 283.8);
Tailwind
colors: {
  custom: {
    50: '#6e539b',
    500: '#291071',
    950: '#000000',
  },
}
SCSS
$custom: #291071;
$custom-light: #6e539b;
$custom-dark: #000000;
JSON
{
  "hex": "#291071",
  "rgb": {
    "r": 41,
    "g": 16,
    "b": 113
  },
  "hsl": {
    "h": 255.464,
    "s": 75.194,
    "l": 25.294
  },
  "oklch": {
    "l": 0.29057,
    "c": 0.14991,
    "h": 283.8
  },
  "luminance": 0.02034
}

Semantic roles & 50–950 ramp

primary
#291071
secondary
#8BA934
accent
#F236C1
background
#F7F4F9
surface
#EDE7F2
border
#C8C3CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291071

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

Preview Lab → · Contrast checker → · Palette generator →

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