#291C8B#291C8B

#291C8B is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.4% C 0.171 H 277.0°. Best body text is #FFFFFF at 12.86:1 contrast (WCAG AA passes).

Color values

HEX#291C8B
RGBrgb(41, 28, 139)
HSLhsl(247, 66%, 33%)
HSVhsv(247, 80%, 55%)
CMYKcmyk(70.5%, 79.9%, 0%, 45.5%)
CIE-LABlab(20.69, 40.79, -58.74)
CIE-LCHlch(20.69, 71.51, 304.78°)
OKLaboklab(33.43% 0.021 -0.1697)
OKLCHoklch(33.43% 0.171 277)
XYZxyz(5.9884, 3.1655, 24.7165)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291C8B #7E8B1C
analogous
#1C468B #291C8B #601C8B
triadic
#291C8B #8B291C #1C8B29
tetradic
#291C8B #8B1C46 #7E8B1C #1C8B60
square
#291C8B #8B1C46 #7E8B1C #1C8B60
split-complementary
#291C8B #8B601C #468B1C
monochromatic
#0B0725 #1A1258 #291C8B #3826BE #5947DA

Accessibility & contrast

On white

12.86
#291C8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#291C8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291C8B
12.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291C8B#FFFFFF#000000##FFFFFF
##291C8B1.0012.861.6312.86
#FFFFFF12.861.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368E
Deuteranopia (green-blind)
#002D89
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291c8b;
/* rgb */ color: rgb(41, 28, 139);
/* oklch */ color: oklch(33.4% 0.171 277.0);
Tailwind
colors: {
  custom: {
    50: '#735bae',
    500: '#291c8b',
    950: '#000000',
  },
}
SCSS
$custom: #291c8b;
$custom-light: #735bae;
$custom-dark: #000000;
JSON
{
  "hex": "#291c8b",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 139
  },
  "hsl": {
    "h": 247.027,
    "s": 66.467,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33431,
    "c": 0.17103,
    "h": 277
  },
  "luminance": 0.03166
}

Semantic roles & 50–950 ramp

primary
#291C8B
secondary
#AEBC47
accent
#E93ED5
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #291C8B

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

Preview Lab → · Contrast checker → · Palette generator →

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