#291D87#291D87

#291D87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.165 H 277.5°. Best body text is #FFFFFF at 12.96:1 contrast (WCAG AA passes).

Color values

HEX#291D87
RGBrgb(41, 29, 135)
HSLhsl(247, 65%, 32%)
HSVhsv(247, 79%, 53%)
CMYKcmyk(69.6%, 78.5%, 0%, 47.1%)
CIE-LABlab(20.44, 38.95, -56.66)
CIE-LCHlch(20.44, 68.76, 304.51°)
OKLaboklab(33.12% 0.0215 -0.1637)
OKLCHoklch(33.12% 0.165 277.5)
XYZxyz(5.7256, 3.0989, 23.2134)
Luminance0.0310 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D87 #7B871D
analogous
#1D4687 #291D87 #5E1D87
triadic
#291D87 #87291D #1D8729
tetradic
#291D87 #871D46 #7B871D #1D875E
square
#291D87 #871D46 #7B871D #1D875E
split-complementary
#291D87 #875E1D #46871D
monochromatic
#0A0722 #1A1255 #291D87 #3828B9 #5747D7

Accessibility & contrast

On white

12.96
#291D87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#291D87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291D87
12.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291D87#FFFFFF#000000##FFFFFF
##291D871.0012.961.6212.96
#FFFFFF12.961.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.961.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291d87;
/* rgb */ color: rgb(41, 29, 135);
/* oklch */ color: oklch(33.1% 0.165 277.5);
Tailwind
colors: {
  custom: {
    50: '#715bab',
    500: '#291d87',
    950: '#000000',
  },
}
SCSS
$custom: #291d87;
$custom-light: #715bab;
$custom-dark: #000000;
JSON
{
  "hex": "#291d87",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 135
  },
  "hsl": {
    "h": 246.792,
    "s": 64.634,
    "l": 32.157
  },
  "oklch": {
    "l": 0.33117,
    "c": 0.1651,
    "h": 277.5
  },
  "luminance": 0.03099
}

Semantic roles & 50–950 ramp

primary
#291D87
secondary
#ACB946
accent
#E840D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291D87

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

Preview Lab → · Contrast checker → · Palette generator →

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