#291172#291172

#291172 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.150 H 283.4°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#291172
RGBrgb(41, 17, 114)
HSLhsl(255, 74%, 26%)
HSVhsv(255, 85%, 45%)
CMYKcmyk(64%, 85.1%, 0%, 55.3%)
CIE-LABlab(15.94, 38.42, -50.70)
CIE-LCHlch(15.94, 63.61, 307.16°)
OKLaboklab(29.28% 0.0348 -0.1462)
OKLCHoklch(29.28% 0.15 283.4)
XYZxyz(4.1512, 2.0869, 16.1004)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291172 #5A7211
analogous
#112A72 #291172 #591172
triadic
#291172 #722911 #117229
tetradic
#291172 #72112A #5A7211 #117259
square
#291172 #72112A #5A7211 #117259
split-complementary
#291172 #725911 #2A7211
monochromatic
#0A041B #16093D #291172 #3C19A7 #4F21DD

Accessibility & contrast

On white

14.82
#291172 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291172 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291172
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291172#FFFFFF#000000##FFFFFF
##2911721.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A75
Deuteranopia (green-blind)
#002470
Tritanopia (blue-blind)
#002F42
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291172;
/* rgb */ color: rgb(41, 17, 114);
/* oklch */ color: oklch(29.3% 0.150 283.4);
Tailwind
colors: {
  custom: {
    50: '#6e549c',
    500: '#291172',
    950: '#000000',
  },
}
SCSS
$custom: #291172;
$custom-light: #6e549c;
$custom-dark: #000000;
JSON
{
  "hex": "#291172",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 114
  },
  "hsl": {
    "h": 254.845,
    "s": 74.046,
    "l": 25.686
  },
  "oklch": {
    "l": 0.29279,
    "c": 0.15026,
    "h": 283.4
  },
  "luminance": 0.02087
}

Semantic roles & 50–950 ramp

primary
#291172
secondary
#8DA936
accent
#F137C3
background
#F7F4F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291172

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

Preview Lab → · Contrast checker → · Palette generator →

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