#291684#291684

#291684 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.9% C 0.168 H 278.9°. Best body text is #FFFFFF at 13.62:1 contrast (WCAG AA passes).

Color values

HEX#291684
RGBrgb(41, 22, 132)
HSLhsl(250, 71%, 30%)
HSVhsv(250, 83%, 52%)
CMYKcmyk(68.9%, 83.3%, 0%, 48.2%)
CIE-LABlab(18.85, 41.60, -57.40)
CIE-LCHlch(18.85, 70.89, 305.93°)
OKLaboklab(31.91% 0.026 -0.1658)
OKLCHoklch(31.91% 0.168 278.9)
XYZxyz(5.3649, 2.7107, 22.0658)
Luminance0.0271 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291684 #718416
analogous
#163A84 #291684 #601684
triadic
#291684 #842916 #168429
tetradic
#291684 #84163A #718416 #168460
square
#291684 #84163A #718416 #168460
split-complementary
#291684 #846016 #3A8416
monochromatic
#08051B #190D50 #291684 #391FB8 #5437DE

Accessibility & contrast

On white

13.62
#291684 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#291684 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291684
13.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291684#FFFFFF#000000##FFFFFF
##2916841.0013.621.5413.62
#FFFFFF13.621.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002982
Tritanopia (blue-blind)
#00384E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291684;
/* rgb */ color: rgb(41, 22, 132);
/* oklch */ color: oklch(31.9% 0.168 278.9);
Tailwind
colors: {
  custom: {
    50: '#7157a9',
    500: '#291684',
    950: '#000000',
  },
}
SCSS
$custom: #291684;
$custom-light: #7157a9;
$custom-dark: #000000;
JSON
{
  "hex": "#291684",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 132
  },
  "hsl": {
    "h": 250.364,
    "s": 71.429,
    "l": 30.196
  },
  "oklch": {
    "l": 0.31908,
    "c": 0.16779,
    "h": 278.9
  },
  "luminance": 0.02711
}

Semantic roles & 50–950 ramp

primary
#291684
secondary
#A3B83D
accent
#EE3ACF
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291684

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

Preview Lab → · Contrast checker → · Palette generator →

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