#291E87#291E87

#291E87 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.3% C 0.164 H 277.3°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#291E87
RGBrgb(41, 30, 135)
HSLhsl(246, 64%, 32%)
HSVhsv(246, 78%, 53%)
CMYKcmyk(69.6%, 77.8%, 0%, 47.1%)
CIE-LABlab(20.63, 38.40, -56.34)
CIE-LCHlch(20.63, 68.18, 304.28°)
OKLaboklab(33.25% 0.0209 -0.1628)
OKLCHoklch(33.25% 0.164 277.3)
XYZxyz(5.7505, 3.1487, 23.2217)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291E87 #7C871E
analogous
#1E4787 #291E87 #5E1E87
triadic
#291E87 #87291E #1E8729
tetradic
#291E87 #871E47 #7C871E #1E875E
square
#291E87 #871E47 #7C871E #1E875E
split-complementary
#291E87 #875E1E #47871E
monochromatic
#0B0823 #1A1355 #291E87 #3829B9 #5849D7

Accessibility & contrast

On white

12.89
#291E87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291E87
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291E87#FFFFFF#000000##FFFFFF
##291E871.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368A
Deuteranopia (green-blind)
#002D85
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291e87;
/* rgb */ color: rgb(41, 30, 135);
/* oklch */ color: oklch(33.3% 0.164 277.3);
Tailwind
colors: {
  custom: {
    50: '#715cab',
    500: '#291e87',
    950: '#000000',
  },
}
SCSS
$custom: #291e87;
$custom-light: #715cab;
$custom-dark: #000000;
JSON
{
  "hex": "#291e87",
  "rgb": {
    "r": 41,
    "g": 30,
    "b": 135
  },
  "hsl": {
    "h": 246.286,
    "s": 63.636,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33254,
    "c": 0.16412,
    "h": 277.3
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#291E87
secondary
#ADB948
accent
#E741D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291E87

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

Preview Lab → · Contrast checker → · Palette generator →

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