#291777#291777

#291777 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.151 H 281.3°. Best body text is #FFFFFF at 14.16:1 contrast (WCAG AA passes).

Color values

HEX#291777
RGBrgb(41, 23, 119)
HSLhsl(251, 68%, 28%)
HSVhsv(251, 81%, 47%)
CMYKcmyk(65.5%, 80.7%, 0%, 53.3%)
CIE-LABlab(17.53, 37.00, -51.29)
CIE-LCHlch(17.53, 63.24, 305.81°)
OKLaboklab(30.56% 0.0295 -0.148)
OKLCHoklch(30.56% 0.151 281.3)
XYZxyz(4.5496, 2.4158, 17.6757)
Luminance0.0242 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291777 #657717
analogous
#173577 #291777 #591777
triadic
#291777 #772917 #177729
tetradic
#291777 #771735 #657717 #177759
square
#291777 #771735 #657717 #177759
split-complementary
#291777 #775917 #357717
monochromatic
#09051A #170D44 #291777 #3B21AA #5031D7

Accessibility & contrast

On white

14.16
#291777 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291777
14.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291777#FFFFFF#000000##FFFFFF
##2917771.0014.161.4814.16
#FFFFFF14.161.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.161.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: #291777;
/* rgb */ color: rgb(41, 23, 119);
/* oklch */ color: oklch(30.6% 0.151 281.3);
Tailwind
colors: {
  custom: {
    50: '#6e579f',
    500: '#291777',
    950: '#000000',
  },
}
SCSS
$custom: #291777;
$custom-light: #6e579f;
$custom-dark: #000000;
JSON
{
  "hex": "#291777",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 119
  },
  "hsl": {
    "h": 251.25,
    "s": 67.606,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30557,
    "c": 0.15089,
    "h": 281.3
  },
  "luminance": 0.02416
}

Semantic roles & 50–950 ramp

primary
#291777
secondary
#97AC3E
accent
#EA3DCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291777

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

Preview Lab → · Contrast checker → · Palette generator →

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