#291151#291151

#291151 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.7% C 0.109 H 294.6°. Best body text is #FFFFFF at 16.24:1 contrast (WCAG AA passes).

Color values

HEX#291151
RGBrgb(41, 17, 81)
HSLhsl(263, 65%, 19%)
HSVhsv(263, 79%, 32%)
CMYKcmyk(49.4%, 79%, 0%, 68.2%)
CIE-LABlab(12.39, 28.27, -34.57)
CIE-LCHlch(12.39, 44.65, 309.28°)
OKLaboklab(25.74% 0.0454 -0.099)
OKLCHoklch(25.74% 0.109 294.6)
XYZxyz(2.5997, 1.4663, 7.9290)
Luminance0.0147 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291151 #395111
analogous
#111951 #291151 #491151
triadic
#291151 #512911 #115129
tetradic
#291151 #511119 #395111 #115149
square
#291151 #511119 #395111 #115149
split-complementary
#291151 #514911 #195111
monochromatic
#0D0519 #0F061E #291151 #431C84 #5C26B6

Accessibility & contrast

On white

16.24
#291151 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.29
#291151 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291151
16.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291151#FFFFFF#000000##FFFFFF
##2911511.0016.241.2916.24
#FFFFFF16.241.0021.001.00
#0000001.2921.001.0021.00
##FFFFFF16.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#001F50
Tritanopia (blue-blind)
#1E222F
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #291151;
/* rgb */ color: rgb(41, 17, 81);
/* oklch */ color: oklch(25.7% 0.109 294.6);
Tailwind
colors: {
  custom: {
    50: '#675182',
    500: '#291151',
    950: '#000000',
  },
}
SCSS
$custom: #291151;
$custom-light: #675182;
$custom-dark: #000000;
JSON
{
  "hex": "#291151",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 81
  },
  "hsl": {
    "h": 262.5,
    "s": 65.306,
    "l": 19.216
  },
  "oklch": {
    "l": 0.25735,
    "c": 0.10889,
    "h": 294.6
  },
  "luminance": 0.01466
}

Semantic roles & 50–950 ramp

primary
#291151
secondary
#6A8A34
accent
#E840A9
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #291151

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

Preview Lab → · Contrast checker → · Palette generator →

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