#291D4E#291D4E

#291D4E is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.5% C 0.086 H 290.9°. Best body text is #FFFFFF at 15.22:1 contrast (WCAG AA passes).

Color values

HEX#291D4E
RGBrgb(41, 29, 78)
HSLhsl(255, 46%, 21%)
HSVhsv(255, 63%, 31%)
CMYKcmyk(47.4%, 62.8%, 0%, 69.4%)
CIE-LABlab(14.95, 19.68, -28.36)
CIE-LCHlch(14.95, 34.51, 304.76°)
OKLaboklab(27.51% 0.0308 -0.0808)
OKLCHoklch(27.51% 0.086 290.9)
XYZxyz(2.7286, 1.9001, 7.4292)
Luminance0.0190 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D4E #424E1D
analogous
#1D294E #291D4E #411D4E
triadic
#291D4E #4E291D #1D4E29
tetradic
#291D4E #4E1D29 #424E1D #1D4E41
square
#291D4E #4E1D29 #424E1D #1D4E41
split-complementary
#291D4E #4E411D #294E1D
monochromatic
#0C0816 #120C21 #291D4E #402E7B #583EA7

Accessibility & contrast

On white

15.22
#291D4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#291D4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291D4E
15.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291D4E#FFFFFF#000000##FFFFFF
##291D4E1.0015.221.3815.22
#FFFFFF15.221.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#022650
Deuteranopia (green-blind)
#04254D
Tritanopia (blue-blind)
#1E2832
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291d4e;
/* rgb */ color: rgb(41, 29, 78);
/* oklch */ color: oklch(27.5% 0.086 290.9);
Tailwind
colors: {
  custom: {
    50: '#665980',
    500: '#291d4e',
    950: '#000000',
  },
}
SCSS
$custom: #291d4e;
$custom-light: #665980;
$custom-dark: #000000;
JSON
{
  "hex": "#291d4e",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 78
  },
  "hsl": {
    "h": 254.694,
    "s": 45.794,
    "l": 20.98
  },
  "oklch": {
    "l": 0.27506,
    "c": 0.08646,
    "h": 290.9
  },
  "luminance": 0.019
}

Semantic roles & 50–950 ramp

primary
#291D4E
secondary
#748344
accent
#D552B5
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #291D4E

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

Preview Lab → · Contrast checker → · Palette generator →

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