#291871#291871

#291871 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.0% C 0.142 H 282.4°. Best body text is #FFFFFF at 14.35:1 contrast (WCAG AA passes).

Color values

HEX#291871
RGBrgb(41, 24, 113)
HSLhsl(251, 65%, 27%)
HSVhsv(251, 79%, 44%)
CMYKcmyk(63.7%, 78.8%, 0%, 55.7%)
CIE-LABlab(17.07, 34.53, -48.18)
CIE-LCHlch(17.07, 59.28, 305.62°)
OKLaboklab(30.03% 0.0305 -0.1389)
OKLCHoklch(30.03% 0.142 282.4)
XYZxyz(4.2208, 2.3166, 15.8443)
Luminance0.0232 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291871 #607118
analogous
#183371 #291871 #561871
triadic
#291871 #712918 #187129
tetradic
#291871 #711833 #607118 #187156
square
#291871 #711833 #607118 #187156
split-complementary
#291871 #715618 #337118
monochromatic
#090519 #170D3F #291871 #3B23A3 #4F30D3

Accessibility & contrast

On white

14.35
#291871 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#291871 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291871
14.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291871#FFFFFF#000000##FFFFFF
##2918711.0014.351.4614.35
#FFFFFF14.351.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291871;
/* rgb */ color: rgb(41, 24, 113);
/* oklch */ color: oklch(30.0% 0.142 282.4);
Tailwind
colors: {
  custom: {
    50: '#6d579b',
    500: '#291871',
    950: '#000000',
  },
}
SCSS
$custom: #291871;
$custom-light: #6d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#291871",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 113
  },
  "hsl": {
    "h": 251.461,
    "s": 64.964,
    "l": 26.863
  },
  "oklch": {
    "l": 0.30034,
    "c": 0.14224,
    "h": 282.4
  },
  "luminance": 0.02317
}

Semantic roles & 50–950 ramp

primary
#291871
secondary
#93A63E
accent
#E840C8
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291871

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

Preview Lab → · Contrast checker → · Palette generator →

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