#291778#291778

#291778 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.152 H 281.1°. Best body text is #FFFFFF at 14.11:1 contrast (WCAG AA passes).

Color values

HEX#291778
RGBrgb(41, 23, 120)
HSLhsl(251, 68%, 28%)
HSVhsv(251, 81%, 47%)
CMYKcmyk(65.8%, 80.8%, 0%, 52.9%)
CIE-LABlab(17.64, 37.32, -51.75)
CIE-LCHlch(17.64, 63.80, 305.80°)
OKLaboklab(30.67% 0.0292 -0.1493)
OKLCHoklch(30.67% 0.152 281.1)
XYZxyz(4.6099, 2.4399, 17.9937)
Luminance0.0244 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291778 #667817
analogous
#173578 #291778 #591778
triadic
#291778 #782917 #177829
tetradic
#291778 #781735 #667817 #177859
square
#291778 #781735 #667817 #177859
split-complementary
#291778 #785917 #357817
monochromatic
#09051A #170D45 #291778 #3B21AB #5132D8

Accessibility & contrast

On white

14.11
#291778 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#291778 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291778
14.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291778#FFFFFF#000000##FFFFFF
##2917781.0014.111.4914.11
#FFFFFF14.111.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.111.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291778;
/* rgb */ color: rgb(41, 23, 120);
/* oklch */ color: oklch(30.7% 0.152 281.1);
Tailwind
colors: {
  custom: {
    50: '#6f57a0',
    500: '#291778',
    950: '#000000',
  },
}
SCSS
$custom: #291778;
$custom-light: #6f57a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291778",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 120
  },
  "hsl": {
    "h": 251.134,
    "s": 67.832,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30668,
    "c": 0.15215,
    "h": 281.1
  },
  "luminance": 0.0244
}

Semantic roles & 50–950 ramp

primary
#291778
secondary
#98AD3E
accent
#EB3DCA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291778

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

Preview Lab → · Contrast checker → · Palette generator →

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