#291878#291878

#291878 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.151 H 280.9°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#291878
RGBrgb(41, 24, 120)
HSLhsl(251, 67%, 28%)
HSVhsv(251, 80%, 47%)
CMYKcmyk(65.8%, 80%, 0%, 52.9%)
CIE-LABlab(17.83, 36.79, -51.44)
CIE-LCHlch(17.83, 63.24, 305.57°)
OKLaboklab(30.8% 0.0286 -0.1484)
OKLCHoklch(30.8% 0.151 280.9)
XYZxyz(4.6302, 2.4804, 18.0004)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291878 #677818
analogous
#183778 #291878 #591878
triadic
#291878 #782918 #187829
tetradic
#291878 #781837 #677818 #187859
square
#291878 #781837 #677818 #187859
split-complementary
#291878 #785918 #377818
monochromatic
#09051A #180E45 #291878 #3A22AB #5134D6

Accessibility & contrast

On white

14.04
#291878 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291878
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291878#FFFFFF#000000##FFFFFF
##2918781.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291878;
/* rgb */ color: rgb(41, 24, 120);
/* oklch */ color: oklch(30.8% 0.151 280.9);
Tailwind
colors: {
  custom: {
    50: '#6f58a0',
    500: '#291878',
    950: '#000000',
  },
}
SCSS
$custom: #291878;
$custom-light: #6f58a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291878",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 120
  },
  "hsl": {
    "h": 250.625,
    "s": 66.667,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30797,
    "c": 0.15116,
    "h": 280.9
  },
  "luminance": 0.02481
}

Semantic roles & 50–950 ramp

primary
#291878
secondary
#99AD3F
accent
#EA3ECB
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291878

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

Preview Lab → · Contrast checker → · Palette generator →

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