#291978#291978

#291978 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.9% C 0.150 H 280.7°. Best body text is #FFFFFF at 13.96:1 contrast (WCAG AA passes).

Color values

HEX#291978
RGBrgb(41, 25, 120)
HSLhsl(250, 66%, 28%)
HSVhsv(250, 79%, 47%)
CMYKcmyk(65.8%, 79.2%, 0%, 52.9%)
CIE-LABlab(18.02, 36.25, -51.13)
CIE-LCHlch(18.02, 62.67, 305.34°)
OKLaboklab(30.93% 0.0279 -0.1475)
OKLCHoklch(30.93% 0.15 280.7)
XYZxyz(4.6512, 2.5224, 18.0074)
Luminance0.0252 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291978 #687819
analogous
#193878 #291978 #581978
triadic
#291978 #782919 #197829
tetradic
#291978 #781938 #687819 #197858
square
#291978 #781938 #687819 #197858
split-complementary
#291978 #785819 #387819
monochromatic
#090519 #180E45 #291978 #3A24AB #5136D5

Accessibility & contrast

On white

13.96
#291978 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#291978 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291978
13.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291978#FFFFFF#000000##FFFFFF
##2919781.0013.961.5013.96
#FFFFFF13.961.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF13.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7B
Deuteranopia (green-blind)
#002876
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291978;
/* rgb */ color: rgb(41, 25, 120);
/* oklch */ color: oklch(30.9% 0.150 280.7);
Tailwind
colors: {
  custom: {
    50: '#6e58a0',
    500: '#291978',
    950: '#000000',
  },
}
SCSS
$custom: #291978;
$custom-light: #6e58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291978",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 120
  },
  "hsl": {
    "h": 250.105,
    "s": 65.517,
    "l": 28.431
  },
  "oklch": {
    "l": 0.3093,
    "c": 0.15015,
    "h": 280.7
  },
  "luminance": 0.02523
}

Semantic roles & 50–950 ramp

primary
#291978
secondary
#9AAD40
accent
#E83FCC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291978

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

Preview Lab → · Contrast checker → · Palette generator →

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