#291771#291771

#291771 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.143 H 282.6°. Best body text is #FFFFFF at 14.43:1 contrast (WCAG AA passes).

Color values

HEX#291771
RGBrgb(41, 23, 113)
HSLhsl(252, 66%, 27%)
HSVhsv(252, 80%, 44%)
CMYKcmyk(63.7%, 79.6%, 0%, 55.7%)
CIE-LABlab(16.87, 35.08, -48.50)
CIE-LCHlch(16.87, 59.86, 305.87°)
OKLaboklab(29.9% 0.0312 -0.1399)
OKLCHoklch(29.9% 0.143 282.6)
XYZxyz(4.2006, 2.2762, 15.8376)
Luminance0.0228 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291771 #5F7117
analogous
#173271 #291771 #561771
triadic
#291771 #712917 #177129
tetradic
#291771 #711732 #5F7117 #177156
square
#291771 #711732 #5F7117 #177156
split-complementary
#291771 #715617 #327117
monochromatic
#090519 #170D3E #291771 #3B21A4 #4F2ED4

Accessibility & contrast

On white

14.43
#291771 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291771
14.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291771#FFFFFF#000000##FFFFFF
##2917711.0014.431.4614.43
#FFFFFF14.431.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.431.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291771;
/* rgb */ color: rgb(41, 23, 113);
/* oklch */ color: oklch(29.9% 0.143 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d579b',
    500: '#291771',
    950: '#000000',
  },
}
SCSS
$custom: #291771;
$custom-light: #6d579b;
$custom-dark: #000000;
JSON
{
  "hex": "#291771",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 113
  },
  "hsl": {
    "h": 252,
    "s": 66.176,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29898,
    "c": 0.14331,
    "h": 282.6
  },
  "luminance": 0.02276
}

Semantic roles & 50–950 ramp

primary
#291771
secondary
#92A73D
accent
#E93FC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291771

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

Preview Lab → · Contrast checker → · Palette generator →

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