#291564#291564

#291564 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.129 H 286.5°. Best body text is #FFFFFF at 15.16:1 contrast (WCAG AA passes).

Color values

HEX#291564
RGBrgb(41, 21, 100)
HSLhsl(255, 65%, 24%)
HSVhsv(255, 79%, 39%)
CMYKcmyk(59%, 79%, 0%, 60.8%)
CIE-LABlab(15.10, 32.00, -42.91)
CIE-LCHlch(15.10, 53.52, 306.72°)
OKLaboklab(28.24% 0.0365 -0.1235)
OKLCHoklch(28.24% 0.129 286.5)
XYZxyz(3.4822, 1.9277, 12.2427)
Luminance0.0193 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291564 #506415
analogous
#152864 #291564 #501564
triadic
#291564 #642915 #156429
tetradic
#291564 #641528 #506415 #156450
square
#291564 #641528 #506415 #156450
split-complementary
#291564 #645015 #286415
monochromatic
#0A0519 #140A31 #291564 #3E2097 #522AC9

Accessibility & contrast

On white

15.16
#291564 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#291564 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291564
15.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291564#FFFFFF#000000##FFFFFF
##2915641.0015.161.3915.16
#FFFFFF15.161.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002866
Deuteranopia (green-blind)
#002463
Tritanopia (blue-blind)
#0E2B3B
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291564;
/* rgb */ color: rgb(41, 21, 100);
/* oklch */ color: oklch(28.2% 0.129 286.5);
Tailwind
colors: {
  custom: {
    50: '#6b5591',
    500: '#291564',
    950: '#000000',
  },
}
SCSS
$custom: #291564;
$custom-light: #6b5591;
$custom-dark: #000000;
JSON
{
  "hex": "#291564",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 100
  },
  "hsl": {
    "h": 255.19,
    "s": 65.289,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28236,
    "c": 0.12875,
    "h": 286.5
  },
  "luminance": 0.01928
}

Semantic roles & 50–950 ramp

primary
#291564
secondary
#829B3A
accent
#E840BE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291564

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

Preview Lab → · Contrast checker → · Palette generator →

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