#291979#291979

#291979 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.0% C 0.151 H 280.5°. Best body text is #FFFFFF at 13.91:1 contrast (WCAG AA passes).

Color values

HEX#291979
RGBrgb(41, 25, 121)
HSLhsl(250, 66%, 29%)
HSVhsv(250, 79%, 47%)
CMYKcmyk(66.1%, 79.3%, 0%, 52.5%)
CIE-LABlab(18.13, 36.57, -51.59)
CIE-LCHlch(18.13, 63.24, 305.34°)
OKLaboklab(31.04% 0.0276 -0.1489)
OKLCHoklch(31.04% 0.151 280.5)
XYZxyz(4.7122, 2.5468, 18.3287)
Luminance0.0255 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291979 #697919
analogous
#193979 #291979 #591979
triadic
#291979 #792919 #197929
tetradic
#291979 #791939 #697919 #197959
square
#291979 #791939 #697919 #197959
split-complementary
#291979 #795919 #397919
monochromatic
#090519 #180F46 #291979 #3A23AC #5137D6

Accessibility & contrast

On white

13.91
#291979 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#291979 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291979
13.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291979#FFFFFF#000000##FFFFFF
##2919791.0013.911.5113.91
#FFFFFF13.911.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307C
Deuteranopia (green-blind)
#002977
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291979;
/* rgb */ color: rgb(41, 25, 121);
/* oklch */ color: oklch(31.0% 0.151 280.5);
Tailwind
colors: {
  custom: {
    50: '#6f58a1',
    500: '#291979',
    950: '#000000',
  },
}
SCSS
$custom: #291979;
$custom-light: #6f58a1;
$custom-dark: #000000;
JSON
{
  "hex": "#291979",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 121
  },
  "hsl": {
    "h": 250,
    "s": 65.753,
    "l": 28.627
  },
  "oklch": {
    "l": 0.31039,
    "c": 0.15142,
    "h": 280.5
  },
  "luminance": 0.02547
}

Semantic roles & 50–950 ramp

primary
#291979
secondary
#9BAE40
accent
#E93FCC
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291979

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

Preview Lab → · Contrast checker → · Palette generator →

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