#291666#291666

#291666 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.6% C 0.130 H 285.6°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#291666
RGBrgb(41, 22, 102)
HSLhsl(254, 65%, 24%)
HSVhsv(254, 78%, 40%)
CMYKcmyk(59.8%, 78.4%, 0%, 60%)
CIE-LABlab(15.51, 32.08, -43.56)
CIE-LCHlch(15.51, 54.10, 306.37°)
OKLaboklab(28.59% 0.0351 -0.1254)
OKLCHoklch(28.59% 0.13 285.6)
XYZxyz(3.5989, 2.0043, 12.7650)
Luminance0.0200 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291666 #536616
analogous
#162B66 #291666 #511666
triadic
#291666 #662916 #166629
tetradic
#291666 #66162B #536616 #166651
square
#291666 #66162B #536616 #166651
split-complementary
#291666 #665116 #2B6616
monochromatic
#0A0519 #150B34 #291666 #3D2198 #512CCB

Accessibility & contrast

On white

14.99
#291666 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#291666 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291666
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291666#FFFFFF#000000##FFFFFF
##2916661.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002968
Deuteranopia (green-blind)
#002465
Tritanopia (blue-blind)
#0B2C3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291666;
/* rgb */ color: rgb(41, 22, 102);
/* oklch */ color: oklch(28.6% 0.130 285.6);
Tailwind
colors: {
  custom: {
    50: '#6b5592',
    500: '#291666',
    950: '#000000',
  },
}
SCSS
$custom: #291666;
$custom-light: #6b5592;
$custom-dark: #000000;
JSON
{
  "hex": "#291666",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 102
  },
  "hsl": {
    "h": 254.25,
    "s": 64.516,
    "l": 24.314
  },
  "oklch": {
    "l": 0.28586,
    "c": 0.13021,
    "h": 285.6
  },
  "luminance": 0.02005
}

Semantic roles & 50–950 ramp

primary
#291666
secondary
#859D3B
accent
#E840C0
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291666

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

Preview Lab → · Contrast checker → · Palette generator →

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