#291478#291478

#291478 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.155 H 281.5°. Best body text is #FFFFFF at 14.33:1 contrast (WCAG AA passes).

Color values

HEX#291478
RGBrgb(41, 20, 120)
HSLhsl(253, 71%, 27%)
HSVhsv(253, 83%, 47%)
CMYKcmyk(65.8%, 83.3%, 0%, 52.9%)
CIE-LABlab(17.12, 38.84, -52.61)
CIE-LCHlch(17.12, 65.40, 306.44°)
OKLaboklab(30.3% 0.031 -0.1518)
OKLCHoklch(30.3% 0.155 281.5)
XYZxyz(4.5537, 2.3275, 17.9749)
Luminance0.0233 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291478 #637814
analogous
#143178 #291478 #5B1478
triadic
#291478 #782914 #147829
tetradic
#291478 #781431 #637814 #14785B
square
#291478 #781431 #637814 #14785B
split-complementary
#291478 #785B14 #317814
monochromatic
#09041A #170B44 #291478 #3B1DAC #502BDC

Accessibility & contrast

On white

14.33
#291478 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#291478 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291478
14.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291478#FFFFFF#000000##FFFFFF
##2914781.0014.331.4714.33
#FFFFFF14.331.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7B
Deuteranopia (green-blind)
#002676
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291478;
/* rgb */ color: rgb(41, 20, 120);
/* oklch */ color: oklch(30.3% 0.155 281.5);
Tailwind
colors: {
  custom: {
    50: '#6f55a0',
    500: '#291478',
    950: '#000000',
  },
}
SCSS
$custom: #291478;
$custom-light: #6f55a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291478",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 120
  },
  "hsl": {
    "h": 252.6,
    "s": 71.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30302,
    "c": 0.15494,
    "h": 281.5
  },
  "luminance": 0.02328
}

Semantic roles & 50–950 ramp

primary
#291478
secondary
#96AE3A
accent
#EE3AC8
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291478

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

Preview Lab → · Contrast checker → · Palette generator →

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