#291171#291171

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

Color values

HEX#291171
RGBrgb(41, 17, 113)
HSLhsl(255, 74%, 25%)
HSVhsv(255, 85%, 44%)
CMYKcmyk(63.7%, 85%, 0%, 55.7%)
CIE-LABlab(15.82, 38.12, -50.24)
CIE-LCHlch(15.82, 63.06, 307.19°)
OKLaboklab(29.17% 0.0351 -0.1448)
OKLCHoklch(29.17% 0.149 283.6)
XYZxyz(4.0946, 2.0643, 15.8023)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291171 #597111
analogous
#112971 #291171 #591171
triadic
#291171 #712911 #117129
tetradic
#291171 #711129 #597111 #117159
square
#291171 #711129 #597111 #117159
split-complementary
#291171 #715911 #297111
monochromatic
#0A041B #16093C #291171 #3C19A6 #5021DB

Accessibility & contrast

On white

14.86
#291171 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291171
14.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291171#FFFFFF#000000##FFFFFF
##2911711.0014.861.4114.86
#FFFFFF14.861.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.861.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: #291171;
/* rgb */ color: rgb(41, 17, 113);
/* oklch */ color: oklch(29.2% 0.149 283.6);
Tailwind
colors: {
  custom: {
    50: '#6e539b',
    500: '#291171',
    950: '#000000',
  },
}
SCSS
$custom: #291171;
$custom-light: #6e539b;
$custom-dark: #000000;
JSON
{
  "hex": "#291171",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 113
  },
  "hsl": {
    "h": 255,
    "s": 73.846,
    "l": 25.49
  },
  "oklch": {
    "l": 0.29165,
    "c": 0.14905,
    "h": 283.6
  },
  "luminance": 0.02065
}

Semantic roles & 50–950 ramp

primary
#291171
secondary
#8CA836
accent
#F137C2
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291171

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

Preview Lab → · Contrast checker → · Palette generator →

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