#291577#291577

#291577 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 30.3% C 0.153 H 281.6°. Best body text is #FFFFFF at 14.31:1 contrast (WCAG AA passes).

Color values

HEX#291577
RGBrgb(41, 21, 119)
HSLhsl(252, 70%, 27%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(65.5%, 82.4%, 0%, 53.3%)
CIE-LABlab(17.18, 38.03, -51.88)
CIE-LCHlch(17.18, 64.33, 306.25°)
OKLaboklab(30.31% 0.0307 -0.1497)
OKLCHoklch(30.31% 0.153 281.6)
XYZxyz(4.5113, 2.3393, 17.6630)
Luminance0.0234 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291577 #637715
analogous
#153277 #291577 #5A1577
triadic
#291577 #772915 #157729
tetradic
#291577 #771532 #637715 #15775A
square
#291577 #771532 #637715 #15775A
split-complementary
#291577 #775A15 #327715
monochromatic
#09051A #170C43 #291577 #3B1EAB #502DDA

Accessibility & contrast

On white

14.31
#291577 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#291577 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291577
14.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291577#FFFFFF#000000##FFFFFF
##2915771.0014.311.4714.31
#FFFFFF14.311.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003246
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291577;
/* rgb */ color: rgb(41, 21, 119);
/* oklch */ color: oklch(30.3% 0.153 281.6);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#291577',
    950: '#000000',
  },
}
SCSS
$custom: #291577;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#291577",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 119
  },
  "hsl": {
    "h": 252.245,
    "s": 70,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30307,
    "c": 0.1528,
    "h": 281.6
  },
  "luminance": 0.0234
}

Semantic roles & 50–950 ramp

primary
#291577
secondary
#96AD3B
accent
#ED3BC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291577

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

Preview Lab → · Contrast checker → · Palette generator →

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