#291589#291589

#291589 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.4% C 0.175 H 278.2°. Best body text is #FFFFFF at 13.44:1 contrast (WCAG AA passes).

Color values

HEX#291589
RGBrgb(41, 21, 137)
HSLhsl(250, 73%, 31%)
HSVhsv(250, 85%, 54%)
CMYKcmyk(70.1%, 84.7%, 0%, 46.3%)
CIE-LABlab(19.28, 43.60, -59.82)
CIE-LCHlch(19.28, 74.03, 306.08°)
OKLaboklab(32.38% 0.0248 -0.1728)
OKLCHoklch(32.38% 0.175 278.2)
XYZxyz(5.6965, 2.8134, 23.9049)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291589 #758915
analogous
#153B89 #291589 #631589
triadic
#291589 #892915 #158929
tetradic
#291589 #89153B #758915 #158963
square
#291589 #89153B #758915 #158963
split-complementary
#291589 #896315 #3B8915
monochromatic
#09051F #190D54 #291589 #391DBE #5538E0

Accessibility & contrast

On white

13.44
#291589 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#291589 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291589
13.44:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291589#FFFFFF#000000##FFFFFF
##2915891.0013.441.5613.44
#FFFFFF13.441.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.441.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338C
Deuteranopia (green-blind)
#002A87
Tritanopia (blue-blind)
#003A51
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291589;
/* rgb */ color: rgb(41, 21, 137);
/* oklch */ color: oklch(32.4% 0.175 278.2);
Tailwind
colors: {
  custom: {
    50: '#7357ad',
    500: '#291589',
    950: '#000000',
  },
}
SCSS
$custom: #291589;
$custom-light: #7357ad;
$custom-dark: #000000;
JSON
{
  "hex": "#291589",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 137
  },
  "hsl": {
    "h": 250.345,
    "s": 73.418,
    "l": 30.98
  },
  "oklch": {
    "l": 0.32382,
    "c": 0.17458,
    "h": 278.2
  },
  "luminance": 0.02814
}

Semantic roles & 50–950 ramp

primary
#291589
secondary
#A7BD3D
accent
#F038D0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291589

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

Preview Lab → · Contrast checker → · Palette generator →

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