#291173#291173

#291173 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.151 H 283.1°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#291173
RGBrgb(41, 17, 115)
HSLhsl(255, 74%, 26%)
HSVhsv(255, 85%, 45%)
CMYKcmyk(64.3%, 85.2%, 0%, 54.9%)
CIE-LABlab(16.05, 38.73, -51.15)
CIE-LCHlch(16.05, 64.16, 307.13°)
OKLaboklab(29.39% 0.0344 -0.1475)
OKLCHoklch(29.39% 0.151 283.1)
XYZxyz(4.2085, 2.1098, 16.4018)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291173 #5B7311
analogous
#112A73 #291173 #5A1173
triadic
#291173 #732911 #117329
tetradic
#291173 #73112A #5B7311 #11735A
square
#291173 #73112A #5B7311 #11735A
split-complementary
#291173 #735A11 #2A7311
monochromatic
#0A041B #16093E #291173 #3C19A8 #4F21DE

Accessibility & contrast

On white

14.77
#291173 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291173
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291173#FFFFFF#000000##FFFFFF
##2911731.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#002F43
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291173;
/* rgb */ color: rgb(41, 17, 115);
/* oklch */ color: oklch(29.4% 0.151 283.1);
Tailwind
colors: {
  custom: {
    50: '#6e549c',
    500: '#291173',
    950: '#000000',
  },
}
SCSS
$custom: #291173;
$custom-light: #6e549c;
$custom-dark: #000000;
JSON
{
  "hex": "#291173",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 115
  },
  "hsl": {
    "h": 254.694,
    "s": 74.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.29394,
    "c": 0.15147,
    "h": 283.1
  },
  "luminance": 0.0211
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291173

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

Preview Lab → · Contrast checker → · Palette generator →

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