#291678#291678

#291678 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.5% C 0.153 H 281.2°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#291678
RGBrgb(41, 22, 120)
HSLhsl(252, 69%, 28%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(65.8%, 81.7%, 0%, 52.9%)
CIE-LABlab(17.46, 37.84, -52.04)
CIE-LCHlch(17.46, 64.35, 306.02°)
OKLaboklab(30.54% 0.0298 -0.1502)
OKLCHoklch(30.54% 0.153 281.2)
XYZxyz(4.5905, 2.4010, 17.9872)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291678 #657816
analogous
#163478 #291678 #5A1678
triadic
#291678 #782916 #167829
tetradic
#291678 #781634 #657816 #16785A
square
#291678 #781634 #657816 #16785A
split-complementary
#291678 #785A16 #347816
monochromatic
#09051A #170D44 #291678 #3B1FAC #502FD9

Accessibility & contrast

On white

14.19
#291678 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291678 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291678
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291678#FFFFFF#000000##FFFFFF
##2916781.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7B
Deuteranopia (green-blind)
#002776
Tritanopia (blue-blind)
#003347
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291678;
/* rgb */ color: rgb(41, 22, 120);
/* oklch */ color: oklch(30.5% 0.153 281.2);
Tailwind
colors: {
  custom: {
    50: '#6f57a0',
    500: '#291678',
    950: '#000000',
  },
}
SCSS
$custom: #291678;
$custom-light: #6f57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291678",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 120
  },
  "hsl": {
    "h": 251.633,
    "s": 69.014,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30542,
    "c": 0.1531,
    "h": 281.2
  },
  "luminance": 0.02401
}

Semantic roles & 50–950 ramp

primary
#291678
secondary
#97AD3C
accent
#EC3CCA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291678

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

Preview Lab → · Contrast checker → · Palette generator →

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