#291180#291180

#291180 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.9% C 0.167 H 280.2°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#291180
RGBrgb(41, 17, 128)
HSLhsl(253, 77%, 28%)
HSVhsv(253, 87%, 50%)
CMYKcmyk(68%, 86.7%, 0%, 49.8%)
CIE-LABlab(17.60, 42.64, -56.93)
CIE-LCHlch(17.60, 71.12, 306.83°)
OKLaboklab(30.91% 0.0297 -0.1643)
OKLCHoklch(30.91% 0.167 280.2)
XYZxyz(5.0099, 2.4304, 20.6230)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291180 #688011
analogous
#113080 #291180 #601180
triadic
#291180 #802911 #118029
tetradic
#291180 #801130 #688011 #118060
square
#291180 #801130 #688011 #118060
split-complementary
#291180 #806011 #308011
monochromatic
#09041B #180A4A #291180 #3A18B6 #5129E3

Accessibility & contrast

On white

14.13
#291180 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#291180 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291180
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291180#FFFFFF#000000##FFFFFF
##2911801.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F83
Deuteranopia (green-blind)
#00277E
Tritanopia (blue-blind)
#00354B
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291180;
/* rgb */ color: rgb(41, 17, 128);
/* oklch */ color: oklch(30.9% 0.167 280.2);
Tailwind
colors: {
  custom: {
    50: '#7155a6',
    500: '#291180',
    950: '#000000',
  },
}
SCSS
$custom: #291180;
$custom-light: #7155a6;
$custom-dark: #000000;
JSON
{
  "hex": "#291180",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 128
  },
  "hsl": {
    "h": 252.973,
    "s": 76.552,
    "l": 28.431
  },
  "oklch": {
    "l": 0.30912,
    "c": 0.16697,
    "h": 280.2
  },
  "luminance": 0.02431
}

Semantic roles & 50–950 ramp

primary
#291180
secondary
#9AB637
accent
#F335CA
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #291180

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

Preview Lab → · Contrast checker → · Palette generator →

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