#291779#291779

#291779 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.153 H 280.9°. Best body text is #FFFFFF at 14.07:1 contrast (WCAG AA passes).

Color values

HEX#291779
RGBrgb(41, 23, 121)
HSLhsl(251, 68%, 28%)
HSVhsv(251, 81%, 47%)
CMYKcmyk(66.1%, 81%, 0%, 52.5%)
CIE-LABlab(17.76, 37.64, -52.20)
CIE-LCHlch(17.76, 64.36, 305.79°)
OKLaboklab(30.78% 0.0289 -0.1506)
OKLCHoklch(30.78% 0.153 280.9)
XYZxyz(4.6709, 2.4643, 18.3150)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291779 #677917
analogous
#173679 #291779 #5A1779
triadic
#291779 #792917 #177929
tetradic
#291779 #791736 #677917 #17795A
square
#291779 #791736 #677917 #17795A
split-complementary
#291779 #795A17 #367917
monochromatic
#09051A #180D46 #291779 #3A21AC #5132D8

Accessibility & contrast

On white

14.07
#291779 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#291779 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291779
14.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291779#FFFFFF#000000##FFFFFF
##2917791.0014.071.4914.07
#FFFFFF14.071.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7C
Deuteranopia (green-blind)
#002877
Tritanopia (blue-blind)
#003448
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291779;
/* rgb */ color: rgb(41, 23, 121);
/* oklch */ color: oklch(30.8% 0.153 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f57a1',
    500: '#291779',
    950: '#000000',
  },
}
SCSS
$custom: #291779;
$custom-light: #6f57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#291779",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 121
  },
  "hsl": {
    "h": 251.02,
    "s": 68.056,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30779,
    "c": 0.1534,
    "h": 280.9
  },
  "luminance": 0.02465
}

Semantic roles & 50–950 ramp

primary
#291779
secondary
#99AE3E
accent
#EB3DCB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291779

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

Preview Lab → · Contrast checker → · Palette generator →

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