#291F86#291F86

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

Color values

HEX#291F86
RGBrgb(41, 31, 134)
HSLhsl(246, 62%, 32%)
HSVhsv(246, 77%, 53%)
CMYKcmyk(69.4%, 76.9%, 0%, 47.5%)
CIE-LABlab(20.72, 37.50, -55.56)
CIE-LCHlch(20.72, 67.03, 304.02°)
OKLaboklab(33.28% 0.0206 -0.1605)
OKLCHoklch(33.28% 0.162 277.3)
XYZxyz(5.7061, 3.1721, 22.8612)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F86 #7C861F
analogous
#1F4986 #291F86 #5C1F86
triadic
#291F86 #86291F #1F8629
tetradic
#291F86 #861F49 #7C861F #1F865C
square
#291F86 #861F49 #7C861F #1F865C
split-complementary
#291F86 #865C1F #49861F
monochromatic
#0B0823 #1A1454 #291F86 #382AB8 #584AD5

Accessibility & contrast

On white

12.85
#291F86 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F86
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F86#FFFFFF#000000##FFFFFF
##291F861.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003689
Deuteranopia (green-blind)
#002D84
Tritanopia (blue-blind)
#003D51
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291f86;
/* rgb */ color: rgb(41, 31, 134);
/* oklch */ color: oklch(33.3% 0.162 277.3);
Tailwind
colors: {
  custom: {
    50: '#715daa',
    500: '#291f86',
    950: '#000000',
  },
}
SCSS
$custom: #291f86;
$custom-light: #715daa;
$custom-dark: #000000;
JSON
{
  "hex": "#291f86",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 134
  },
  "hsl": {
    "h": 245.825,
    "s": 62.424,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33285,
    "c": 0.16183,
    "h": 277.3
  },
  "luminance": 0.03173
}

Semantic roles & 50–950 ramp

primary
#291F86
secondary
#ADB849
accent
#E542D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F86

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

Preview Lab → · Contrast checker → · Palette generator →

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