#291F57#291F57

#291F57 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.7% C 0.097 H 286.8°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#291F57
RGBrgb(41, 31, 87)
HSLhsl(251, 47%, 23%)
HSVhsv(251, 64%, 34%)
CMYKcmyk(52.9%, 64.4%, 0%, 65.9%)
CIE-LABlab(16.20, 21.36, -32.44)
CIE-LCHlch(16.20, 38.84, 303.36°)
OKLaboklab(28.65% 0.028 -0.0928)
OKLCHoklch(28.65% 0.097 286.8)
XYZxyz(3.1242, 2.1394, 9.2633)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F57 #4D571F
analogous
#1F3157 #291F57 #451F57
triadic
#291F57 #57291F #1F5729
tetradic
#291F57 #571F31 #4D571F #1F5745
square
#291F57 #571F31 #4D571F #1F5745
split-complementary
#291F57 #57451F #31571F
monochromatic
#0B0817 #140F2A #291F57 #3E2F84 #543FB1

Accessibility & contrast

On white

14.71
#291F57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291F57 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F57
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F57#FFFFFF#000000##FFFFFF
##291F571.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A59
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#192C37
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291f57;
/* rgb */ color: rgb(41, 31, 87);
/* oklch */ color: oklch(28.7% 0.097 286.8);
Tailwind
colors: {
  custom: {
    50: '#675b87',
    500: '#291f57',
    950: '#000000',
  },
}
SCSS
$custom: #291f57;
$custom-light: #675b87;
$custom-dark: #000000;
JSON
{
  "hex": "#291f57",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 87
  },
  "hsl": {
    "h": 250.714,
    "s": 47.458,
    "l": 23.137
  },
  "oklch": {
    "l": 0.28653,
    "c": 0.09691,
    "h": 286.8
  },
  "luminance": 0.0214
}

Semantic roles & 50–950 ramp

primary
#291F57
secondary
#7F8C46
accent
#D751BF
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06040B
muted
#7A797C

Preview Lab

Preview with #291F57

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

Preview Lab → · Contrast checker → · Palette generator →

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