#291B59#291B59

#291B59 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.1% C 0.106 H 288.0°. Best body text is #FFFFFF at 15.05:1 contrast (WCAG AA passes).

Color values

HEX#291B59
RGBrgb(41, 27, 89)
HSLhsl(254, 53%, 23%)
HSVhsv(254, 70%, 35%)
CMYKcmyk(53.9%, 69.7%, 0%, 65.1%)
CIE-LABlab(15.36, 24.72, -35.15)
CIE-LCHlch(15.36, 42.97, 305.12°)
OKLaboklab(28.09% 0.0327 -0.1007)
OKLCHoklch(28.09% 0.106 288)
XYZxyz(3.1090, 1.9764, 9.6669)
Luminance0.0198 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B59 #4B591B
analogous
#1B2C59 #291B59 #481B59
triadic
#291B59 #59291B #1B5929
tetradic
#291B59 #591B2C #4B591B #1B5948
square
#291B59 #591B2C #4B591B #1B5948
split-complementary
#291B59 #59481B #2C591B
monochromatic
#0B0717 #130D2A #291B59 #3F2988 #5437B7

Accessibility & contrast

On white

15.05
#291B59 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291B59
15.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B59#FFFFFF#000000##FFFFFF
##291B591.0015.051.4015.05
#FFFFFF15.051.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00285B
Deuteranopia (green-blind)
#002558
Tritanopia (blue-blind)
#182A37
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291b59;
/* rgb */ color: rgb(41, 27, 89);
/* oklch */ color: oklch(28.1% 0.106 288.0);
Tailwind
colors: {
  custom: {
    50: '#685888',
    500: '#291b59',
    950: '#000000',
  },
}
SCSS
$custom: #291b59;
$custom-light: #685888;
$custom-dark: #000000;
JSON
{
  "hex": "#291b59",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 89
  },
  "hsl": {
    "h": 253.548,
    "s": 53.448,
    "l": 22.745
  },
  "oklch": {
    "l": 0.28094,
    "c": 0.10591,
    "h": 288
  },
  "luminance": 0.01977
}

Semantic roles & 50–950 ramp

primary
#291B59
secondary
#7D8F41
accent
#DD4BBC
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291B59

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

Preview Lab → · Contrast checker → · Palette generator →

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