#291588#291588

#291588 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.3% C 0.173 H 278.3°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#291588
RGBrgb(41, 21, 136)
HSLhsl(250, 73%, 31%)
HSVhsv(250, 85%, 53%)
CMYKcmyk(69.9%, 84.6%, 0%, 46.7%)
CIE-LABlab(19.16, 43.30, -59.40)
CIE-LCHlch(19.16, 73.50, 306.09°)
OKLaboklab(32.26% 0.0252 -0.1715)
OKLCHoklch(32.26% 0.173 278.3)
XYZxyz(5.6251, 2.7848, 23.5289)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291588 #748815
analogous
#153A88 #291588 #621588
triadic
#291588 #882915 #158829
tetradic
#291588 #88153A #748815 #158862
square
#291588 #88153A #748815 #158862
split-complementary
#291588 #886215 #3A8815
monochromatic
#09051E #190D53 #291588 #391DBD #5537E0

Accessibility & contrast

On white

13.49
#291588 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291588
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291588#FFFFFF#000000##FFFFFF
##2915881.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291588;
/* rgb */ color: rgb(41, 21, 136);
/* oklch */ color: oklch(32.3% 0.173 278.3);
Tailwind
colors: {
  custom: {
    50: '#7257ac',
    500: '#291588',
    950: '#000000',
  },
}
SCSS
$custom: #291588;
$custom-light: #7257ac;
$custom-dark: #000000;
JSON
{
  "hex": "#291588",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 136
  },
  "hsl": {
    "h": 250.435,
    "s": 73.248,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32264,
    "c": 0.17339,
    "h": 278.3
  },
  "luminance": 0.02785
}

Semantic roles & 50–950 ramp

primary
#291588
secondary
#A6BC3D
accent
#F038D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291588

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

Preview Lab → · Contrast checker → · Palette generator →

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