#291F87#291F87

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

Color values

HEX#291F87
RGBrgb(41, 31, 135)
HSLhsl(246, 63%, 33%)
HSVhsv(246, 77%, 53%)
CMYKcmyk(69.6%, 77%, 0%, 47.1%)
CIE-LABlab(20.83, 37.84, -56.01)
CIE-LCHlch(20.83, 67.59, 304.04°)
OKLaboklab(33.39% 0.0203 -0.1618)
OKLCHoklch(33.39% 0.163 277.2)
XYZxyz(5.7762, 3.2001, 23.2303)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F87 #7D871F
analogous
#1F4987 #291F87 #5D1F87
triadic
#291F87 #87291F #1F8729
tetradic
#291F87 #871F49 #7D871F #1F875D
square
#291F87 #871F49 #7D871F #1F875D
split-complementary
#291F87 #875D1F #49871F
monochromatic
#0B0823 #1A1455 #291F87 #382AB9 #584BD6

Accessibility & contrast

On white

12.80
#291F87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#291F87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F87
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F87#FFFFFF#000000##FFFFFF
##291F871.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291f87;
/* rgb */ color: rgb(41, 31, 135);
/* oklch */ color: oklch(33.4% 0.163 277.2);
Tailwind
colors: {
  custom: {
    50: '#715dab',
    500: '#291f87',
    950: '#000000',
  },
}
SCSS
$custom: #291f87;
$custom-light: #715dab;
$custom-dark: #000000;
JSON
{
  "hex": "#291f87",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 135
  },
  "hsl": {
    "h": 245.769,
    "s": 62.651,
    "l": 32.549
  },
  "oklch": {
    "l": 0.33394,
    "c": 0.1631,
    "h": 277.2
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#291F87
secondary
#AEB84A
accent
#E642D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F87

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

Preview Lab → · Contrast checker → · Palette generator →

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