#291F55#291F55

#291F55 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.5% C 0.094 H 287.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#291F55
RGBrgb(41, 31, 85)
HSLhsl(251, 47%, 23%)
HSVhsv(251, 64%, 33%)
CMYKcmyk(51.8%, 63.5%, 0%, 66.7%)
CIE-LABlab(16.04, 20.68, -31.36)
CIE-LCHlch(16.04, 37.56, 303.40°)
OKLaboklab(28.48% 0.0281 -0.0896)
OKLCHoklch(28.48% 0.094 287.4)
XYZxyz(3.0437, 2.1071, 8.8389)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F55 #4B551F
analogous
#1F3055 #291F55 #441F55
triadic
#291F55 #55291F #1F5529
tetradic
#291F55 #551F30 #4B551F #1F5544
square
#291F55 #551F30 #4B551F #1F5544
split-complementary
#291F55 #55441F #30551F
monochromatic
#0B0816 #130F28 #291F55 #3F2F82 #5440AF

Accessibility & contrast

On white

14.77
#291F55 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291F55 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F55
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F55#FFFFFF#000000##FFFFFF
##291F551.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002957
Deuteranopia (green-blind)
#002654
Tritanopia (blue-blind)
#1A2B36
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291f55;
/* rgb */ color: rgb(41, 31, 85);
/* oklch */ color: oklch(28.5% 0.094 287.4);
Tailwind
colors: {
  custom: {
    50: '#675b85',
    500: '#291f55',
    950: '#000000',
  },
}
SCSS
$custom: #291f55;
$custom-light: #675b85;
$custom-dark: #000000;
JSON
{
  "hex": "#291f55",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 85
  },
  "hsl": {
    "h": 251.111,
    "s": 46.552,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28482,
    "c": 0.09388,
    "h": 287.4
  },
  "luminance": 0.02107
}

Semantic roles & 50–950 ramp

primary
#291F55
secondary
#7D8A46
accent
#D652BE
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #291F55

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

Preview Lab → · Contrast checker → · Palette generator →

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