#291B4C#291B4C

#291B4C is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.087 H 292.8°. Best body text is #FFFFFF at 15.49:1 contrast (WCAG AA passes).

Color values

HEX#291B4C
RGBrgb(41, 27, 76)
HSLhsl(257, 48%, 20%)
HSVhsv(257, 64%, 30%)
CMYKcmyk(46.1%, 64.5%, 0%, 70.2%)
CIE-LABlab(14.27, 20.38, -28.09)
CIE-LCHlch(14.27, 34.70, 305.96°)
OKLaboklab(26.95% 0.0336 -0.08)
OKLCHoklch(26.95% 0.087 292.8)
XYZxyz(2.6105, 1.7770, 7.0415)
Luminance0.0178 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B4C #3E4C1B
analogous
#1B254C #291B4C #411B4C
triadic
#291B4C #4C291B #1B4C29
tetradic
#291B4C #4C1B25 #3E4C1B #1B4C41
square
#291B4C #4C1B25 #3E4C1B #1B4C41
split-complementary
#291B4C #4C411B #254C1B
monochromatic
#0C0817 #110B1F #291B4C #412B79 #5A3BA6

Accessibility & contrast

On white

15.49
#291B4C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291B4C
15.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B4C#FFFFFF#000000##FFFFFF
##291B4C1.0015.491.3615.49
#FFFFFF15.491.0021.001.00
#0000001.3621.001.0021.00
##FFFFFF15.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254E
Deuteranopia (green-blind)
#04234B
Tritanopia (blue-blind)
#202630
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291b4c;
/* rgb */ color: rgb(41, 27, 76);
/* oklch */ color: oklch(27.0% 0.087 292.8);
Tailwind
colors: {
  custom: {
    50: '#66587e',
    500: '#291b4c',
    950: '#000000',
  },
}
SCSS
$custom: #291b4c;
$custom-light: #66587e;
$custom-dark: #000000;
JSON
{
  "hex": "#291b4c",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 76
  },
  "hsl": {
    "h": 257.143,
    "s": 47.573,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26953,
    "c": 0.08677,
    "h": 292.8
  },
  "luminance": 0.01777
}

Semantic roles & 50–950 ramp

primary
#291B4C
secondary
#6F8241
accent
#D751B1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #291B4C

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

Preview Lab → · Contrast checker → · Palette generator →

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