#291261#291261

#291261 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.128 H 288.1°. Best body text is #FFFFFF at 15.52:1 contrast (WCAG AA passes).

Color values

HEX#291261
RGBrgb(41, 18, 97)
HSLhsl(257, 69%, 23%)
HSVhsv(257, 81%, 38%)
CMYKcmyk(57.7%, 81.4%, 0%, 62%)
CIE-LABlab(14.21, 32.69, -42.38)
CIE-LCHlch(14.21, 53.52, 307.64°)
OKLaboklab(27.52% 0.0399 -0.1219)
OKLCHoklch(27.52% 0.128 288.1)
XYZxyz(3.2878, 1.7669, 11.4748)
Luminance0.0177 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291261 #4A6112
analogous
#122361 #291261 #501261
triadic
#291261 #612912 #126129
tetradic
#291261 #611223 #4A6112 #126150
square
#291261 #611223 #4A6112 #126150
split-complementary
#291261 #615012 #236112
monochromatic
#0B051A #13082D #291261 #3F1C95 #5525C8

Accessibility & contrast

On white

15.52
#291261 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#291261 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291261
15.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291261#FFFFFF#000000##FFFFFF
##2912611.0015.521.3515.52
#FFFFFF15.521.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002663
Deuteranopia (green-blind)
#002260
Tritanopia (blue-blind)
#122839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291261;
/* rgb */ color: rgb(41, 18, 97);
/* oklch */ color: oklch(27.5% 0.128 288.1);
Tailwind
colors: {
  custom: {
    50: '#6a538f',
    500: '#291261',
    950: '#000000',
  },
}
SCSS
$custom: #291261;
$custom-light: #6a538f;
$custom-dark: #000000;
JSON
{
  "hex": "#291261",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 97
  },
  "hsl": {
    "h": 257.468,
    "s": 68.696,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27515,
    "c": 0.12826,
    "h": 288.1
  },
  "luminance": 0.01767
}

Semantic roles & 50–950 ramp

primary
#291261
secondary
#7C9936
accent
#EC3CB9
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #291261

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

Preview Lab → · Contrast checker → · Palette generator →

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