#291B4E#291B4E

#291B4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.1% C 0.090 H 292.0°. Best body text is #FFFFFF at 15.43:1 contrast (WCAG AA passes).

Color values

HEX#291B4E
RGBrgb(41, 27, 78)
HSLhsl(256, 49%, 21%)
HSVhsv(256, 65%, 31%)
CMYKcmyk(47.4%, 65.4%, 0%, 69.4%)
CIE-LABlab(14.43, 21.04, -29.20)
CIE-LCHlch(14.43, 35.99, 305.77°)
OKLaboklab(27.12% 0.0336 -0.0833)
OKLCHoklch(27.12% 0.09 292)
XYZxyz(2.6812, 1.8053, 7.4134)
Luminance0.0181 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B4E #404E1B
analogous
#1B264E #291B4E #421B4E
triadic
#291B4E #4E291B #1B4E29
tetradic
#291B4E #4E1B26 #404E1B #1B4E42
square
#291B4E #4E1B26 #404E1B #1B4E42
split-complementary
#291B4E #4E421B #264E1B
monochromatic
#0C0817 #110B21 #291B4E #412B7B #593AA9

Accessibility & contrast

On white

15.43
#291B4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.36
#291B4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B4E
15.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B4E#FFFFFF#000000##FFFFFF
##291B4E1.0015.431.3615.43
#FFFFFF15.431.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#01234D
Tritanopia (blue-blind)
#1F2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291b4e;
/* rgb */ color: rgb(41, 27, 78);
/* oklch */ color: oklch(27.1% 0.090 292.0);
Tailwind
colors: {
  custom: {
    50: '#665880',
    500: '#291b4e',
    950: '#000000',
  },
}
SCSS
$custom: #291b4e;
$custom-light: #665880;
$custom-dark: #000000;
JSON
{
  "hex": "#291b4e",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 78
  },
  "hsl": {
    "h": 256.471,
    "s": 48.571,
    "l": 20.588
  },
  "oklch": {
    "l": 0.27121,
    "c": 0.08978,
    "h": 292
  },
  "luminance": 0.01805
}

Semantic roles & 50–950 ramp

primary
#291B4E
secondary
#718441
accent
#D850B3
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #291B4E

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

Preview Lab → · Contrast checker → · Palette generator →

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