#291976#291976

#291976 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.148 H 281.1°. Best body text is #FFFFFF at 14.05:1 contrast (WCAG AA passes).

Color values

HEX#291976
RGBrgb(41, 25, 118)
HSLhsl(250, 65%, 28%)
HSVhsv(250, 79%, 46%)
CMYKcmyk(65.3%, 78.8%, 0%, 53.7%)
CIE-LABlab(17.80, 35.60, -50.20)
CIE-LCHlch(17.80, 61.54, 305.34°)
OKLaboklab(30.71% 0.0285 -0.1448)
OKLCHoklch(30.71% 0.148 281.1)
XYZxyz(4.5311, 2.4743, 17.3749)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291976 #667619
analogous
#193776 #291976 #571976
triadic
#291976 #762919 #197629
tetradic
#291976 #761937 #667619 #197657
square
#291976 #761937 #667619 #197657
split-complementary
#291976 #765719 #377619
monochromatic
#090519 #170E43 #291976 #3B24A8 #5135D4

Accessibility & contrast

On white

14.05
#291976 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291976
14.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291976#FFFFFF#000000##FFFFFF
##2919761.0014.051.5014.05
#FFFFFF14.051.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003446
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #291976;
/* rgb */ color: rgb(41, 25, 118);
/* oklch */ color: oklch(30.7% 0.148 281.1);
Tailwind
colors: {
  custom: {
    50: '#6e589f',
    500: '#291976',
    950: '#000000',
  },
}
SCSS
$custom: #291976;
$custom-light: #6e589f;
$custom-dark: #000000;
JSON
{
  "hex": "#291976",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 118
  },
  "hsl": {
    "h": 250.323,
    "s": 65.035,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30712,
    "c": 0.14761,
    "h": 281.1
  },
  "luminance": 0.02475
}

Semantic roles & 50–950 ramp

primary
#291976
secondary
#98AB40
accent
#E840CB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291976

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

Preview Lab → · Contrast checker → · Palette generator →

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