#291768#291768

#291768 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.132 H 284.8°. Best body text is #FFFFFF at 14.82:1 contrast (WCAG AA passes).

Color values

HEX#291768
RGBrgb(41, 23, 104)
HSLhsl(253, 64%, 25%)
HSVhsv(253, 78%, 41%)
CMYKcmyk(60.6%, 77.9%, 0%, 59.2%)
CIE-LABlab(15.92, 32.16, -44.20)
CIE-LCHlch(15.92, 54.66, 306.04°)
OKLaboklab(28.94% 0.0337 -0.1273)
OKLCHoklch(28.94% 0.132 284.8)
XYZxyz(3.7188, 2.0835, 13.3002)
Luminance0.0208 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291768 #566817
analogous
#172E68 #291768 #511768
triadic
#291768 #682917 #176829
tetradic
#291768 #68172E #566817 #176851
square
#291768 #68172E #566817 #176851
split-complementary
#291768 #685117 #2E6817
monochromatic
#0A0619 #150C36 #291768 #3D229A #512DCC

Accessibility & contrast

On white

14.82
#291768 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291768 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291768
14.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291768#FFFFFF#000000##FFFFFF
##2917681.0014.821.4214.82
#FFFFFF14.821.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A6A
Deuteranopia (green-blind)
#002566
Tritanopia (blue-blind)
#082D3E
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291768;
/* rgb */ color: rgb(41, 23, 104);
/* oklch */ color: oklch(28.9% 0.132 284.8);
Tailwind
colors: {
  custom: {
    50: '#6b5694',
    500: '#291768',
    950: '#000000',
  },
}
SCSS
$custom: #291768;
$custom-light: #6b5694;
$custom-dark: #000000;
JSON
{
  "hex": "#291768",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 104
  },
  "hsl": {
    "h": 253.333,
    "s": 63.78,
    "l": 24.902
  },
  "oklch": {
    "l": 0.28938,
    "c": 0.13168,
    "h": 284.8
  },
  "luminance": 0.02084
}

Semantic roles & 50–950 ramp

primary
#291768
secondary
#899E3D
accent
#E741C2
background
#F6F5F9
surface
#ECE9F1
border
#C7C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291768

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

Preview Lab → · Contrast checker → · Palette generator →

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