#291C58#291C58

#291C58 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.2% C 0.103 H 287.9°. Best body text is #FFFFFF at 14.99:1 contrast (WCAG AA passes).

Color values

HEX#291C58
RGBrgb(41, 28, 88)
HSLhsl(253, 52%, 23%)
HSVhsv(253, 68%, 35%)
CMYKcmyk(53.4%, 68.2%, 0%, 65.5%)
CIE-LABlab(15.52, 23.72, -34.22)
CIE-LCHlch(15.52, 41.64, 304.73°)
OKLaboklab(28.18% 0.0316 -0.098)
OKLCHoklch(28.18% 0.103 287.9)
XYZxyz(3.0906, 2.0064, 9.4550)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291C58 #4B581C
analogous
#1C2D58 #291C58 #471C58
triadic
#291C58 #58291C #1C5829
tetradic
#291C58 #581C2D #4B581C #1C5847
square
#291C58 #581C2D #4B581C #1C5847
split-complementary
#291C58 #58471C #2D581C
monochromatic
#0B0717 #130D2A #291C58 #3F2B86 #543AB5

Accessibility & contrast

On white

14.99
#291C58 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#291C58 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291C58
14.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291C58#FFFFFF#000000##FFFFFF
##291C581.0014.991.4014.99
#FFFFFF14.991.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#192A37
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291c58;
/* rgb */ color: rgb(41, 28, 88);
/* oklch */ color: oklch(28.2% 0.103 287.9);
Tailwind
colors: {
  custom: {
    50: '#685988',
    500: '#291c58',
    950: '#000000',
  },
}
SCSS
$custom: #291c58;
$custom-light: #685988;
$custom-dark: #000000;
JSON
{
  "hex": "#291c58",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 88
  },
  "hsl": {
    "h": 253,
    "s": 51.724,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28181,
    "c": 0.10298,
    "h": 287.9
  },
  "luminance": 0.02007
}

Semantic roles & 50–950 ramp

primary
#291C58
secondary
#7D8E42
accent
#DB4DBC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291C58

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

Preview Lab → · Contrast checker → · Palette generator →

#291C58 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva