#291677#291677

#291677 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.152 H 281.4°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#291677
RGBrgb(41, 22, 119)
HSLhsl(252, 69%, 28%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(65.5%, 81.5%, 0%, 53.3%)
CIE-LABlab(17.35, 37.53, -51.59)
CIE-LCHlch(17.35, 63.79, 306.03°)
OKLaboklab(30.43% 0.0301 -0.1488)
OKLCHoklch(30.43% 0.152 281.4)
XYZxyz(4.5301, 2.3768, 17.6692)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291677 #647716
analogous
#163377 #291677 #5A1677
triadic
#291677 #772916 #167729
tetradic
#291677 #771633 #647716 #16775A
square
#291677 #771633 #647716 #16775A
split-complementary
#291677 #775A16 #337716
monochromatic
#09051A #170C43 #291677 #3B20AB #502FD9

Accessibility & contrast

On white

14.23
#291677 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291677 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291677
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291677#FFFFFF#000000##FFFFFF
##2916771.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7A
Deuteranopia (green-blind)
#002775
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291677;
/* rgb */ color: rgb(41, 22, 119);
/* oklch */ color: oklch(30.4% 0.152 281.4);
Tailwind
colors: {
  custom: {
    50: '#6f569f',
    500: '#291677',
    950: '#000000',
  },
}
SCSS
$custom: #291677;
$custom-light: #6f569f;
$custom-dark: #000000;
JSON
{
  "hex": "#291677",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 119
  },
  "hsl": {
    "h": 251.753,
    "s": 68.794,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3043,
    "c": 0.15186,
    "h": 281.4
  },
  "luminance": 0.02377
}

Semantic roles & 50–950 ramp

primary
#291677
secondary
#96AC3C
accent
#EC3CC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291677

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

Preview Lab → · Contrast checker → · Palette generator →

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