#291166#291166

#291166 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.9% C 0.136 H 286.7°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#291166
RGBrgb(41, 17, 102)
HSLhsl(257, 71%, 23%)
HSVhsv(257, 83%, 40%)
CMYKcmyk(59.8%, 83.3%, 0%, 60%)
CIE-LABlab(14.58, 34.75, -45.09)
CIE-LCHlch(14.58, 56.93, 307.62°)
OKLaboklab(27.93% 0.039 -0.1298)
OKLCHoklch(27.93% 0.136 286.7)
XYZxyz(3.5125, 1.8314, 12.7362)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291166 #4E6611
analogous
#112366 #291166 #531166
triadic
#291166 #662911 #116629
tetradic
#291166 #661123 #4E6611 #116653
square
#291166 #661123 #4E6611 #116653
split-complementary
#291166 #665311 #236611
monochromatic
#0B041A #140832 #291166 #3E1A9A #5322CF

Accessibility & contrast

On white

15.37
#291166 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#291166 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291166
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291166#FFFFFF#000000##FFFFFF
##2911661.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002264
Tritanopia (blue-blind)
#0C2A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291166;
/* rgb */ color: rgb(41, 17, 102);
/* oklch */ color: oklch(27.9% 0.136 286.7);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#291166',
    950: '#000000',
  },
}
SCSS
$custom: #291166;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#291166",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 102
  },
  "hsl": {
    "h": 256.941,
    "s": 71.429,
    "l": 23.333
  },
  "oklch": {
    "l": 0.27932,
    "c": 0.13557,
    "h": 286.7
  },
  "luminance": 0.01832
}

Semantic roles & 50–950 ramp

primary
#291166
secondary
#809E35
accent
#EE3ABB
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #291166

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

Preview Lab → · Contrast checker → · Palette generator →

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