#291776#291776

#291776 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.150 H 281.5°. Best body text is #FFFFFF at 14.20:1 contrast (WCAG AA passes).

Color values

HEX#291776
RGBrgb(41, 23, 118)
HSLhsl(251, 67%, 28%)
HSVhsv(251, 81%, 46%)
CMYKcmyk(65.3%, 80.5%, 0%, 53.7%)
CIE-LABlab(17.42, 36.68, -50.83)
CIE-LCHlch(17.42, 62.68, 305.82°)
OKLaboklab(30.45% 0.0298 -0.1466)
OKLCHoklch(30.45% 0.15 281.5)
XYZxyz(4.4898, 2.3919, 17.3611)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291776 #647617
analogous
#173576 #291776 #581776
triadic
#291776 #762917 #177629
tetradic
#291776 #761735 #647617 #177658
square
#291776 #761735 #647617 #177658
split-complementary
#291776 #765817 #357617
monochromatic
#09051A #170D43 #291776 #3B21A9 #5031D7

Accessibility & contrast

On white

14.20
#291776 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291776 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291776
14.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291776#FFFFFF#000000##FFFFFF
##2917761.0014.201.4814.20
#FFFFFF14.201.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002774
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291776;
/* rgb */ color: rgb(41, 23, 118);
/* oklch */ color: oklch(30.4% 0.150 281.5);
Tailwind
colors: {
  custom: {
    50: '#6e579f',
    500: '#291776',
    950: '#000000',
  },
}
SCSS
$custom: #291776;
$custom-light: #6e579f;
$custom-dark: #000000;
JSON
{
  "hex": "#291776",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 118
  },
  "hsl": {
    "h": 251.368,
    "s": 67.376,
    "l": 27.647
  },
  "oklch": {
    "l": 0.30446,
    "c": 0.14963,
    "h": 281.5
  },
  "luminance": 0.02392
}

Semantic roles & 50–950 ramp

primary
#291776
secondary
#96AB3E
accent
#EA3ECA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291776

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

Preview Lab → · Contrast checker → · Palette generator →

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