#291687#291687

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

Color values

HEX#291687
RGBrgb(41, 22, 135)
HSLhsl(250, 72%, 31%)
HSVhsv(250, 84%, 53%)
CMYKcmyk(69.6%, 83.7%, 0%, 47.1%)
CIE-LABlab(19.20, 42.53, -58.70)
CIE-LCHlch(19.20, 72.49, 305.92°)
OKLaboklab(32.26% 0.0251 -0.1696)
OKLCHoklch(32.26% 0.171 278.4)
XYZxyz(5.5731, 2.7940, 23.1626)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291687 #748716
analogous
#163C87 #291687 #611687
triadic
#291687 #872916 #168729
tetradic
#291687 #87163C #748716 #168761
square
#291687 #87163C #748716 #168761
split-complementary
#291687 #876116 #3C8716
monochromatic
#09051E #190D52 #291687 #391FBC #5539DF

Accessibility & contrast

On white

13.47
#291687 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291687
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291687#FFFFFF#000000##FFFFFF
##2916871.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338A
Deuteranopia (green-blind)
#002A85
Tritanopia (blue-blind)
#003950
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291687;
/* rgb */ color: rgb(41, 22, 135);
/* oklch */ color: oklch(32.3% 0.171 278.4);
Tailwind
colors: {
  custom: {
    50: '#7258ab',
    500: '#291687',
    950: '#000000',
  },
}
SCSS
$custom: #291687;
$custom-light: #7258ab;
$custom-dark: #000000;
JSON
{
  "hex": "#291687",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 135
  },
  "hsl": {
    "h": 250.088,
    "s": 71.975,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32256,
    "c": 0.1714,
    "h": 278.4
  },
  "luminance": 0.02795
}

Semantic roles & 50–950 ramp

primary
#291687
secondary
#A6BB3E
accent
#EF39D0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291687

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

Preview Lab → · Contrast checker → · Palette generator →

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