#291148#291148

#291148 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.9% C 0.097 H 299.2°. Best body text is #FFFFFF at 16.56:1 contrast (WCAG AA passes).

Color values

HEX#291148
RGBrgb(41, 17, 72)
HSLhsl(266, 62%, 17%)
HSVhsv(266, 76%, 28%)
CMYKcmyk(43.1%, 76.4%, 0%, 71.8%)
CIE-LABlab(11.55, 25.53, -29.72)
CIE-LCHlch(11.55, 39.18, 310.66°)
OKLaboklab(24.88% 0.0473 -0.0848)
OKLCHoklch(24.88% 0.097 299.2)
XYZxyz(2.2843, 1.3402, 6.2680)
Luminance0.0134 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291148 #304811
analogous
#111448 #291148 #451148
triadic
#291148 #482911 #114829
tetradic
#291148 #481114 #304811 #114845
square
#291148 #481114 #304811 #114845
split-complementary
#291148 #484511 #144811
monochromatic
#0E0619 #0E0619 #291148 #451D7A #6128AB

Accessibility & contrast

On white

16.56
#291148 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#291148 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291148
16.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291148#FFFFFF#000000##FFFFFF
##2911481.0016.561.2716.56
#FFFFFF16.561.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001F4A
Deuteranopia (green-blind)
#001E47
Tritanopia (blue-blind)
#221E2B
Achromatopsia (no color)
#1F1F1F

Design tokens & code

CSS
--color: #291148;
/* rgb */ color: rgb(41, 17, 72);
/* oklch */ color: oklch(24.9% 0.097 299.2);
Tailwind
colors: {
  custom: {
    50: '#66517b',
    500: '#291148',
    950: '#000000',
  },
}
SCSS
$custom: #291148;
$custom-light: #66517b;
$custom-dark: #000000;
JSON
{
  "hex": "#291148",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 72
  },
  "hsl": {
    "h": 266.182,
    "s": 61.798,
    "l": 17.451
  },
  "oklch": {
    "l": 0.24877,
    "c": 0.09706,
    "h": 299.2
  },
  "luminance": 0.0134
}

Semantic roles & 50–950 ramp

primary
#291148
secondary
#5F8233
accent
#E5439E
background
#F6F4F7
surface
#EBE7EE
border
#C6C3C9
text
#060209
muted
#7A787B

Preview Lab

Preview with #291148

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

Preview Lab → · Contrast checker → · Palette generator →

#291148 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva