#291167#291167

#291167 is a dark, vivid violet. Relative luminance 0.019; OKLCH L 28.0% C 0.137 H 286.4°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#291167
RGBrgb(41, 17, 103)
HSLhsl(257, 72%, 24%)
HSVhsv(257, 83%, 40%)
CMYKcmyk(60.2%, 83.5%, 0%, 59.6%)
CIE-LABlab(14.69, 35.05, -45.57)
CIE-LCHlch(14.69, 57.49, 307.57°)
OKLaboklab(28.04% 0.0387 -0.1312)
OKLCHoklch(28.04% 0.137 286.4)
XYZxyz(3.5623, 1.8514, 12.9990)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291167 #4F6711
analogous
#112467 #291167 #541167
triadic
#291167 #672911 #116729
tetradic
#291167 #671124 #4F6711 #116754
square
#291167 #671124 #4F6711 #116754
split-complementary
#291167 #675411 #246711
monochromatic
#0A041A #140832 #291167 #3E1A9C #5322D0

Accessibility & contrast

On white

15.32
#291167 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291167
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291167#FFFFFF#000000##FFFFFF
##2911671.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002769
Deuteranopia (green-blind)
#002365
Tritanopia (blue-blind)
#0A2A3C
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291167;
/* rgb */ color: rgb(41, 17, 103);
/* oklch */ color: oklch(28.0% 0.137 286.4);
Tailwind
colors: {
  custom: {
    50: '#6c5393',
    500: '#291167',
    950: '#000000',
  },
}
SCSS
$custom: #291167;
$custom-light: #6c5393;
$custom-dark: #000000;
JSON
{
  "hex": "#291167",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 103
  },
  "hsl": {
    "h": 256.744,
    "s": 71.667,
    "l": 23.529
  },
  "oklch": {
    "l": 0.28042,
    "c": 0.13681,
    "h": 286.4
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#291167
secondary
#819F35
accent
#EE39BC
background
#F6F4F9
surface
#ECE7F1
border
#C7C3CB
text
#07020D
muted
#7A787E

Preview Lab

Preview with #291167

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

Preview Lab → · Contrast checker → · Palette generator →

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