#291686#291686

#291686 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.170 H 278.6°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#291686
RGBrgb(41, 22, 134)
HSLhsl(250, 72%, 31%)
HSVhsv(250, 84%, 53%)
CMYKcmyk(69.4%, 83.6%, 0%, 47.5%)
CIE-LABlab(19.08, 42.22, -58.27)
CIE-LCHlch(19.08, 71.96, 305.93°)
OKLaboklab(32.14% 0.0254 -0.1683)
OKLCHoklch(32.14% 0.17 278.6)
XYZxyz(5.5031, 2.7660, 22.7935)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291686 #738616
analogous
#163B86 #291686 #611686
triadic
#291686 #862916 #168629
tetradic
#291686 #86163B #738616 #168661
square
#291686 #86163B #738616 #168661
split-complementary
#291686 #866116 #3B8616
monochromatic
#09051D #190D51 #291686 #391FBB #5438DE

Accessibility & contrast

On white

13.52
#291686 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291686 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291686
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291686#FFFFFF#000000##FFFFFF
##2916861.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291686;
/* rgb */ color: rgb(41, 22, 134);
/* oklch */ color: oklch(32.1% 0.170 278.6);
Tailwind
colors: {
  custom: {
    50: '#7258aa',
    500: '#291686',
    950: '#000000',
  },
}
SCSS
$custom: #291686;
$custom-light: #7258aa;
$custom-dark: #000000;
JSON
{
  "hex": "#291686",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 134
  },
  "hsl": {
    "h": 250.179,
    "s": 71.795,
    "l": 30.588
  },
  "oklch": {
    "l": 0.3214,
    "c": 0.17019,
    "h": 278.6
  },
  "luminance": 0.02766
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291686

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

Preview Lab → · Contrast checker → · Palette generator →

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