#291168#291168

#291168 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.2% C 0.138 H 286.1°. Best body text is #FFFFFF at 15.28:1 contrast (WCAG AA passes).

Color values

HEX#291168
RGBrgb(41, 17, 104)
HSLhsl(257, 72%, 24%)
HSVhsv(257, 84%, 41%)
CMYKcmyk(60.6%, 83.7%, 0%, 59.2%)
CIE-LABlab(14.80, 35.36, -46.05)
CIE-LCHlch(14.80, 58.06, 307.52°)
OKLaboklab(28.15% 0.0383 -0.1326)
OKLCHoklch(28.15% 0.138 286.1)
XYZxyz(3.6128, 1.8716, 13.2649)
Luminance0.0187 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291168 #506811
analogous
#112468 #291168 #541168
triadic
#291168 #682911 #116829
tetradic
#291168 #681124 #506811 #116854
square
#291168 #681124 #506811 #116854
split-complementary
#291168 #685411 #246811
monochromatic
#0A041A #140833 #291168 #3E1A9D #5222D1

Accessibility & contrast

On white

15.28
#291168 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#291168 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291168
15.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291168#FFFFFF#000000##FFFFFF
##2911681.0015.281.3715.28
#FFFFFF15.281.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00276A
Deuteranopia (green-blind)
#002366
Tritanopia (blue-blind)
#092B3D
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291168;
/* rgb */ color: rgb(41, 17, 104);
/* oklch */ color: oklch(28.2% 0.138 286.1);
Tailwind
colors: {
  custom: {
    50: '#6c5394',
    500: '#291168',
    950: '#000000',
  },
}
SCSS
$custom: #291168;
$custom-light: #6c5394;
$custom-dark: #000000;
JSON
{
  "hex": "#291168",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 104
  },
  "hsl": {
    "h": 256.552,
    "s": 71.901,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28153,
    "c": 0.13804,
    "h": 286.1
  },
  "luminance": 0.01872
}

Semantic roles & 50–950 ramp

primary
#291168
secondary
#82A035
accent
#EF39BD
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #291168

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

Preview Lab → · Contrast checker → · Palette generator →

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