#291679#291679

#291679 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.7% C 0.154 H 281.0°. Best body text is #FFFFFF at 14.14:1 contrast (WCAG AA passes).

Color values

HEX#291679
RGBrgb(41, 22, 121)
HSLhsl(252, 69%, 28%)
HSVhsv(252, 82%, 47%)
CMYKcmyk(66.1%, 81.8%, 0%, 52.5%)
CIE-LABlab(17.58, 38.16, -52.50)
CIE-LCHlch(17.58, 64.90, 306.01°)
OKLaboklab(30.65% 0.0295 -0.1515)
OKLCHoklch(30.65% 0.154 281)
XYZxyz(4.6515, 2.4254, 18.3085)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291679 #667916
analogous
#163479 #291679 #5A1679
triadic
#291679 #792916 #167929
tetradic
#291679 #791634 #667916 #16795A
square
#291679 #791634 #667916 #16795A
split-complementary
#291679 #795A16 #347916
monochromatic
#09051A #170D45 #291679 #3B1FAD #5130D9

Accessibility & contrast

On white

14.14
#291679 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#291679 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291679
14.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291679#FFFFFF#000000##FFFFFF
##2916791.0014.141.4914.14
#FFFFFF14.141.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E7C
Deuteranopia (green-blind)
#002777
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291679;
/* rgb */ color: rgb(41, 22, 121);
/* oklch */ color: oklch(30.7% 0.154 281.0);
Tailwind
colors: {
  custom: {
    50: '#6f57a1',
    500: '#291679',
    950: '#000000',
  },
}
SCSS
$custom: #291679;
$custom-light: #6f57a1;
$custom-dark: #000000;
JSON
{
  "hex": "#291679",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 121
  },
  "hsl": {
    "h": 251.515,
    "s": 69.231,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30654,
    "c": 0.15434,
    "h": 281
  },
  "luminance": 0.02426
}

Semantic roles & 50–950 ramp

primary
#291679
secondary
#98AE3D
accent
#EC3CCA
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08030F
muted
#7B787F

Preview Lab

Preview with #291679

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

Preview Lab → · Contrast checker → · Palette generator →

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