#291767#291767

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

Color values

HEX#291767
RGBrgb(41, 23, 103)
HSLhsl(254, 63%, 25%)
HSVhsv(254, 78%, 40%)
CMYKcmyk(60.2%, 77.7%, 0%, 59.6%)
CIE-LABlab(15.82, 31.83, -43.71)
CIE-LCHlch(15.82, 54.08, 306.06°)
OKLaboklab(28.83% 0.034 -0.1259)
OKLCHoklch(28.83% 0.13 285.1)
XYZxyz(3.6683, 2.0633, 13.0343)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291767 #556717
analogous
#172D67 #291767 #511767
triadic
#291767 #672917 #176729
tetradic
#291767 #67172D #556717 #176751
square
#291767 #67172D #556717 #176751
split-complementary
#291767 #675117 #2D6717
monochromatic
#0A0619 #150C35 #291767 #3D2299 #512DCB

Accessibility & contrast

On white

14.87
#291767 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291767
14.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291767#FFFFFF#000000##FFFFFF
##2917671.0014.871.4114.87
#FFFFFF14.871.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A69
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#0A2D3D
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291767;
/* rgb */ color: rgb(41, 23, 103);
/* oklch */ color: oklch(28.8% 0.130 285.1);
Tailwind
colors: {
  custom: {
    50: '#6b5693',
    500: '#291767',
    950: '#000000',
  },
}
SCSS
$custom: #291767;
$custom-light: #6b5693;
$custom-dark: #000000;
JSON
{
  "hex": "#291767",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 103
  },
  "hsl": {
    "h": 253.5,
    "s": 63.492,
    "l": 24.706
  },
  "oklch": {
    "l": 0.28833,
    "c": 0.13036,
    "h": 285.1
  },
  "luminance": 0.02063
}

Semantic roles & 50–950 ramp

primary
#291767
secondary
#889D3D
accent
#E741C1
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291767

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

Preview Lab → · Contrast checker → · Palette generator →

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