#291668#291668

#291668 is a dark, vivid violet. Relative luminance 0.020; OKLCH L 28.8% C 0.133 H 285.1°. Best body text is #FFFFFF at 14.90:1 contrast (WCAG AA passes).

Color values

HEX#291668
RGBrgb(41, 22, 104)
HSLhsl(254, 65%, 25%)
HSVhsv(254, 79%, 41%)
CMYKcmyk(60.6%, 78.8%, 0%, 59.2%)
CIE-LABlab(15.72, 32.73, -44.53)
CIE-LCHlch(15.72, 55.26, 306.31°)
OKLaboklab(28.8% 0.0345 -0.1282)
OKLCHoklch(28.8% 0.133 285.1)
XYZxyz(3.6993, 2.0445, 13.2937)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291668 #556816
analogous
#162C68 #291668 #521668
triadic
#291668 #682916 #166829
tetradic
#291668 #68162C #556816 #166852
square
#291668 #68162C #556816 #166852
split-complementary
#291668 #685216 #2C6816
monochromatic
#0A0519 #150B35 #291668 #3D219B #512BCD

Accessibility & contrast

On white

14.90
#291668 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#291668 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291668
14.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291668#FFFFFF#000000##FFFFFF
##2916681.0014.901.4114.90
#FFFFFF14.901.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00296A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#082D3E
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291668;
/* rgb */ color: rgb(41, 22, 104);
/* oklch */ color: oklch(28.8% 0.133 285.1);
Tailwind
colors: {
  custom: {
    50: '#6b5694',
    500: '#291668',
    950: '#000000',
  },
}
SCSS
$custom: #291668;
$custom-light: #6b5694;
$custom-dark: #000000;
JSON
{
  "hex": "#291668",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 104
  },
  "hsl": {
    "h": 253.902,
    "s": 65.079,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28796,
    "c": 0.13281,
    "h": 285.1
  },
  "luminance": 0.02045
}

Semantic roles & 50–950 ramp

primary
#291668
secondary
#889F3B
accent
#E840C1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291668

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

Preview Lab → · Contrast checker → · Palette generator →

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