#291565#291565

#291565 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.3% C 0.130 H 286.2°. Best body text is #FFFFFF at 15.11:1 contrast (WCAG AA passes).

Color values

HEX#291565
RGBrgb(41, 21, 101)
HSLhsl(255, 66%, 24%)
HSVhsv(255, 79%, 40%)
CMYKcmyk(59.4%, 79.2%, 0%, 60.4%)
CIE-LABlab(15.21, 32.32, -43.40)
CIE-LCHlch(15.21, 54.11, 306.68°)
OKLaboklab(28.34% 0.0362 -0.1249)
OKLCHoklch(28.34% 0.13 286.2)
XYZxyz(3.5309, 1.9471, 12.4992)
Luminance0.0195 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291565 #516515
analogous
#152965 #291565 #511565
triadic
#291565 #652915 #156529
tetradic
#291565 #651529 #516515 #156551
square
#291565 #651529 #516515 #156551
split-complementary
#291565 #655115 #296515
monochromatic
#0A0519 #140A32 #291565 #3E2098 #522ACA

Accessibility & contrast

On white

15.11
#291565 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291565
15.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291565#FFFFFF#000000##FFFFFF
##2915651.0015.111.3915.11
#FFFFFF15.111.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002867
Deuteranopia (green-blind)
#002464
Tritanopia (blue-blind)
#0D2B3C
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291565;
/* rgb */ color: rgb(41, 21, 101);
/* oklch */ color: oklch(28.3% 0.130 286.2);
Tailwind
colors: {
  custom: {
    50: '#6b5592',
    500: '#291565',
    950: '#000000',
  },
}
SCSS
$custom: #291565;
$custom-light: #6b5592;
$custom-dark: #000000;
JSON
{
  "hex": "#291565",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 101
  },
  "hsl": {
    "h": 255,
    "s": 65.574,
    "l": 23.922
  },
  "oklch": {
    "l": 0.28341,
    "c": 0.13005,
    "h": 286.2
  },
  "luminance": 0.01947
}

Semantic roles & 50–950 ramp

primary
#291565
secondary
#839C3A
accent
#E93FBE
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291565

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

Preview Lab → · Contrast checker → · Palette generator →

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