#291266#291266

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

Color values

HEX#291266
RGBrgb(41, 18, 102)
HSLhsl(256, 70%, 24%)
HSVhsv(256, 82%, 40%)
CMYKcmyk(59.8%, 82.4%, 0%, 60%)
CIE-LABlab(14.75, 34.24, -44.80)
CIE-LCHlch(14.75, 56.39, 307.39°)
OKLaboklab(28.05% 0.0383 -0.129)
OKLCHoklch(28.05% 0.135 286.5)
XYZxyz(3.5283, 1.8631, 12.7415)
Luminance0.0186 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291266 #4F6612
analogous
#122566 #291266 #531266
triadic
#291266 #662912 #126629
tetradic
#291266 #661225 #4F6612 #126653
square
#291266 #661225 #4F6612 #126653
split-complementary
#291266 #665312 #256612
monochromatic
#0A051A #140932 #291266 #3E1B9A #5324CE

Accessibility & contrast

On white

15.30
#291266 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#291266 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291266
15.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291266#FFFFFF#000000##FFFFFF
##2912661.0015.301.3715.30
#FFFFFF15.301.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002768
Deuteranopia (green-blind)
#002364
Tritanopia (blue-blind)
#0C2A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291266;
/* rgb */ color: rgb(41, 18, 102);
/* oklch */ color: oklch(28.1% 0.135 286.5);
Tailwind
colors: {
  custom: {
    50: '#6b5393',
    500: '#291266',
    950: '#000000',
  },
}
SCSS
$custom: #291266;
$custom-light: #6b5393;
$custom-dark: #000000;
JSON
{
  "hex": "#291266",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 102
  },
  "hsl": {
    "h": 256.429,
    "s": 70,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28054,
    "c": 0.13456,
    "h": 286.5
  },
  "luminance": 0.01863
}

Semantic roles & 50–950 ramp

primary
#291266
secondary
#819E36
accent
#ED3BBC
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291266

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

Preview Lab → · Contrast checker → · Palette generator →

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