#291C4E#291C4E

#291C4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.3% C 0.088 H 291.4°. Best body text is #FFFFFF at 15.32:1 contrast (WCAG AA passes).

Color values

HEX#291C4E
RGBrgb(41, 28, 78)
HSLhsl(256, 47%, 21%)
HSVhsv(256, 64%, 31%)
CMYKcmyk(47.4%, 64.1%, 0%, 69.4%)
CIE-LABlab(14.69, 20.36, -28.78)
CIE-LCHlch(14.69, 35.26, 305.28°)
OKLaboklab(27.31% 0.0322 -0.082)
OKLCHoklch(27.31% 0.088 291.4)
XYZxyz(2.7045, 1.8519, 7.4212)
Luminance0.0185 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291C4E #414E1C
analogous
#1C284E #291C4E #421C4E
triadic
#291C4E #4E291C #1C4E29
tetradic
#291C4E #4E1C28 #414E1C #1C4E42
square
#291C4E #4E1C28 #414E1C #1C4E42
split-complementary
#291C4E #4E421C #284E1C
monochromatic
#0C0817 #110C21 #291C4E #412C7B #583CA8

Accessibility & contrast

On white

15.32
#291C4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#291C4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291C4E
15.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291C4E#FFFFFF#000000##FFFFFF
##291C4E1.0015.321.3715.32
#FFFFFF15.321.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002650
Deuteranopia (green-blind)
#03244D
Tritanopia (blue-blind)
#1E2731
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291c4e;
/* rgb */ color: rgb(41, 28, 78);
/* oklch */ color: oklch(27.3% 0.088 291.4);
Tailwind
colors: {
  custom: {
    50: '#665880',
    500: '#291c4e',
    950: '#000000',
  },
}
SCSS
$custom: #291c4e;
$custom-light: #665880;
$custom-dark: #000000;
JSON
{
  "hex": "#291c4e",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 78
  },
  "hsl": {
    "h": 255.6,
    "s": 47.17,
    "l": 20.784
  },
  "oklch": {
    "l": 0.27311,
    "c": 0.08812,
    "h": 291.4
  },
  "luminance": 0.01852
}

Semantic roles & 50–950 ramp

primary
#291C4E
secondary
#738442
accent
#D751B4
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #291C4E

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

Preview Lab → · Contrast checker → · Palette generator →

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