#291C87#291C87

#291C87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.0% C 0.166 H 277.6°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#291C87
RGBrgb(41, 28, 135)
HSLhsl(247, 66%, 32%)
HSVhsv(247, 79%, 53%)
CMYKcmyk(69.6%, 79.3%, 0%, 47.1%)
CIE-LABlab(20.25, 39.50, -56.97)
CIE-LCHlch(20.25, 69.32, 304.73°)
OKLaboklab(32.98% 0.022 -0.1646)
OKLCHoklch(32.98% 0.166 277.6)
XYZxyz(5.7015, 3.0507, 23.2054)
Luminance0.0305 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291C87 #7A871C
analogous
#1C4487 #291C87 #5F1C87
triadic
#291C87 #87291C #1C8729
tetradic
#291C87 #871C44 #7A871C #1C875F
square
#291C87 #871C44 #7A871C #1C875F
split-complementary
#291C87 #875F1C #44871C
monochromatic
#0A0722 #1A1154 #291C87 #3827BA #5745D8

Accessibility & contrast

On white

13.04
#291C87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#291C87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291C87
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291C87#FFFFFF#000000##FFFFFF
##291C871.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00358A
Deuteranopia (green-blind)
#002C85
Tritanopia (blue-blind)
#003C51
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #291c87;
/* rgb */ color: rgb(41, 28, 135);
/* oklch */ color: oklch(33.0% 0.166 277.6);
Tailwind
colors: {
  custom: {
    50: '#725bab',
    500: '#291c87',
    950: '#000000',
  },
}
SCSS
$custom: #291c87;
$custom-light: #725bab;
$custom-dark: #000000;
JSON
{
  "hex": "#291c87",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 135
  },
  "hsl": {
    "h": 247.29,
    "s": 65.644,
    "l": 31.961
  },
  "oklch": {
    "l": 0.32984,
    "c": 0.16607,
    "h": 277.6
  },
  "luminance": 0.03051
}

Semantic roles & 50–950 ramp

primary
#291C87
secondary
#ACBA45
accent
#E93FD4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291C87

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

Preview Lab → · Contrast checker → · Palette generator →

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