#291165#291165

#291165 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.8% C 0.134 H 287.0°. Best body text is #FFFFFF at 15.41:1 contrast (WCAG AA passes).

Color values

HEX#291165
RGBrgb(41, 17, 101)
HSLhsl(257, 71%, 23%)
HSVhsv(257, 83%, 40%)
CMYKcmyk(59.4%, 83.2%, 0%, 60.4%)
CIE-LABlab(14.47, 34.44, -44.61)
CIE-LCHlch(14.47, 56.36, 307.67°)
OKLaboklab(27.82% 0.0393 -0.1284)
OKLCHoklch(27.82% 0.134 287)
XYZxyz(3.4632, 1.8117, 12.4766)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291165 #4D6511
analogous
#112365 #291165 #531165
triadic
#291165 #652911 #116529
tetradic
#291165 #651123 #4D6511 #116553
square
#291165 #651123 #4D6511 #116553
split-complementary
#291165 #655311 #236511
monochromatic
#0B041A #140831 #291165 #3E1A99 #5423CE

Accessibility & contrast

On white

15.41
#291165 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#291165 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291165
15.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291165#FFFFFF#000000##FFFFFF
##2911651.0015.411.3615.41
#FFFFFF15.411.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002767
Deuteranopia (green-blind)
#002263
Tritanopia (blue-blind)
#0D2A3B
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291165;
/* rgb */ color: rgb(41, 17, 101);
/* oklch */ color: oklch(27.8% 0.134 287.0);
Tailwind
colors: {
  custom: {
    50: '#6b5392',
    500: '#291165',
    950: '#000000',
  },
}
SCSS
$custom: #291165;
$custom-light: #6b5392;
$custom-dark: #000000;
JSON
{
  "hex": "#291165",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 101
  },
  "hsl": {
    "h": 257.143,
    "s": 71.186,
    "l": 23.137
  },
  "oklch": {
    "l": 0.27822,
    "c": 0.13433,
    "h": 287
  },
  "luminance": 0.01812
}

Semantic roles & 50–950 ramp

primary
#291165
secondary
#7F9D35
accent
#EE3ABA
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #291165

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

Preview Lab → · Contrast checker → · Palette generator →

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