#291561#291561

#291561 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 27.9% C 0.125 H 287.4°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#291561
RGBrgb(41, 21, 97)
HSLhsl(256, 64%, 23%)
HSVhsv(256, 78%, 38%)
CMYKcmyk(57.7%, 78.4%, 0%, 62%)
CIE-LABlab(14.79, 31.04, -41.43)
CIE-LCHlch(14.79, 51.76, 306.84°)
OKLaboklab(27.92% 0.0373 -0.1191)
OKLCHoklch(27.92% 0.125 287.4)
XYZxyz(3.3396, 1.8706, 11.4920)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291561 #4D6115
analogous
#152761 #291561 #4F1561
triadic
#291561 #612915 #156129
tetradic
#291561 #611527 #4D6115 #15614F
square
#291561 #611527 #4D6115 #15614F
split-complementary
#291561 #614F15 #276115
monochromatic
#0B0519 #140A2F #291561 #3E2093 #542BC6

Accessibility & contrast

On white

15.28
#291561 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291561
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291561#FFFFFF#000000##FFFFFF
##2915611.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002763
Deuteranopia (green-blind)
#002360
Tritanopia (blue-blind)
#122A3A
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291561;
/* rgb */ color: rgb(41, 21, 97);
/* oklch */ color: oklch(27.9% 0.125 287.4);
Tailwind
colors: {
  custom: {
    50: '#6a558f',
    500: '#291561',
    950: '#000000',
  },
}
SCSS
$custom: #291561;
$custom-light: #6a558f;
$custom-dark: #000000;
JSON
{
  "hex": "#291561",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 97
  },
  "hsl": {
    "h": 255.789,
    "s": 64.407,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27923,
    "c": 0.12484,
    "h": 287.4
  },
  "luminance": 0.01871
}

Semantic roles & 50–950 ramp

primary
#291561
secondary
#7F983A
accent
#E740BB
background
#F6F5F8
surface
#ECE8F0
border
#C7C4CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #291561

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

Preview Lab → · Contrast checker → · Palette generator →

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