#291977#291977

#291977 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.8% C 0.149 H 280.9°. Best body text is #FFFFFF at 14.00:1 contrast (WCAG AA passes).

Color values

HEX#291977
RGBrgb(41, 25, 119)
HSLhsl(250, 65%, 28%)
HSVhsv(250, 79%, 47%)
CMYKcmyk(65.5%, 79%, 0%, 53.3%)
CIE-LABlab(17.91, 35.92, -50.66)
CIE-LCHlch(17.91, 62.11, 305.34°)
OKLaboklab(30.82% 0.0282 -0.1462)
OKLCHoklch(30.82% 0.149 280.9)
XYZxyz(4.5908, 2.4982, 17.6895)
Luminance0.0250 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291977 #677719
analogous
#193877 #291977 #581977
triadic
#291977 #772919 #197729
tetradic
#291977 #771938 #677719 #197758
square
#291977 #771938 #677719 #197758
split-complementary
#291977 #775819 #387719
monochromatic
#090519 #180E44 #291977 #3A24AA #5136D5

Accessibility & contrast

On white

14.00
#291977 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#291977 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291977
14.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291977#FFFFFF#000000##FFFFFF
##2919771.0014.001.5014.00
#FFFFFF14.001.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291977;
/* rgb */ color: rgb(41, 25, 119);
/* oklch */ color: oklch(30.8% 0.149 280.9);
Tailwind
colors: {
  custom: {
    50: '#6e589f',
    500: '#291977',
    950: '#000000',
  },
}
SCSS
$custom: #291977;
$custom-light: #6e589f;
$custom-dark: #000000;
JSON
{
  "hex": "#291977",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 119
  },
  "hsl": {
    "h": 250.213,
    "s": 65.278,
    "l": 28.235
  },
  "oklch": {
    "l": 0.30821,
    "c": 0.14888,
    "h": 280.9
  },
  "luminance": 0.02499
}

Semantic roles & 50–950 ramp

primary
#291977
secondary
#99AC40
accent
#E840CC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291977

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

Preview Lab → · Contrast checker → · Palette generator →

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