#291B87#291B87

#291B87 is a dark, vivid blue. Relative luminance 0.030; OKLCH L 32.9% C 0.167 H 277.8°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#291B87
RGBrgb(41, 27, 135)
HSLhsl(248, 67%, 32%)
HSVhsv(248, 80%, 53%)
CMYKcmyk(69.6%, 80%, 0%, 47.1%)
CIE-LABlab(20.06, 40.03, -57.28)
CIE-LCHlch(20.06, 69.88, 304.95°)
OKLaboklab(32.85% 0.0226 -0.1655)
OKLCHoklch(32.85% 0.167 277.8)
XYZxyz(5.6781, 3.0041, 23.1976)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B87 #79871B
analogous
#1B4387 #291B87 #5F1B87
triadic
#291B87 #87291B #1B8729
tetradic
#291B87 #871B43 #79871B #1B875F
square
#291B87 #871B43 #79871B #1B875F
split-complementary
#291B87 #875F1B #43871B
monochromatic
#0A0721 #1A1154 #291B87 #3825BA #5643D9

Accessibility & contrast

On white

13.12
#291B87 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#291B87 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B87
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B87#FFFFFF#000000##FFFFFF
##291B871.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291b87;
/* rgb */ color: rgb(41, 27, 135);
/* oklch */ color: oklch(32.9% 0.167 277.8);
Tailwind
colors: {
  custom: {
    50: '#725aab',
    500: '#291b87',
    950: '#000000',
  },
}
SCSS
$custom: #291b87;
$custom-light: #725aab;
$custom-dark: #000000;
JSON
{
  "hex": "#291b87",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 135
  },
  "hsl": {
    "h": 247.778,
    "s": 66.667,
    "l": 31.765
  },
  "oklch": {
    "l": 0.32854,
    "c": 0.16702,
    "h": 277.8
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#291B87
secondary
#ABBA44
accent
#EA3ED3
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291B87

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

Preview Lab → · Contrast checker → · Palette generator →

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