#291276#291276

#291276 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.154 H 282.3°. Best body text is #FFFFFF at 14.56:1 contrast (WCAG AA passes).

Color values

HEX#291276
RGBrgb(41, 18, 118)
HSLhsl(254, 74%, 27%)
HSVhsv(254, 85%, 46%)
CMYKcmyk(65.3%, 84.7%, 0%, 53.7%)
CIE-LABlab(16.56, 39.18, -52.25)
CIE-LCHlch(16.56, 65.31, 306.86°)
OKLaboklab(29.85% 0.0328 -0.1507)
OKLCHoklch(29.85% 0.154 282.3)
XYZxyz(4.3998, 2.2117, 17.3311)
Luminance0.0221 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291276 #5F7612
analogous
#122D76 #291276 #5B1276
triadic
#291276 #762912 #127629
tetradic
#291276 #76122D #5F7612 #12765B
square
#291276 #76122D #5F7612 #12765B
split-complementary
#291276 #765B12 #2D7612
monochromatic
#09041B #170A41 #291276 #3B1AAB #4F25DE

Accessibility & contrast

On white

14.56
#291276 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#291276 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291276
14.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291276#FFFFFF#000000##FFFFFF
##2912761.0014.561.4414.56
#FFFFFF14.561.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C79
Deuteranopia (green-blind)
#002574
Tritanopia (blue-blind)
#003145
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291276;
/* rgb */ color: rgb(41, 18, 118);
/* oklch */ color: oklch(29.8% 0.154 282.3);
Tailwind
colors: {
  custom: {
    50: '#6f549f',
    500: '#291276',
    950: '#000000',
  },
}
SCSS
$custom: #291276;
$custom-light: #6f549f;
$custom-dark: #000000;
JSON
{
  "hex": "#291276",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 118
  },
  "hsl": {
    "h": 253.8,
    "s": 73.529,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29848,
    "c": 0.15424,
    "h": 282.3
  },
  "luminance": 0.02212
}

Semantic roles & 50–950 ramp

primary
#291276
secondary
#92AD37
accent
#F038C6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291276

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

Preview Lab → · Contrast checker → · Palette generator →

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