#291B81#291B81

#291B81 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.2% C 0.160 H 278.7°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#291B81
RGBrgb(41, 27, 129)
HSLhsl(248, 65%, 31%)
HSVhsv(248, 79%, 51%)
CMYKcmyk(68.2%, 79.1%, 0%, 49.4%)
CIE-LABlab(19.39, 38.09, -54.60)
CIE-LCHlch(19.39, 66.57, 304.90°)
OKLaboklab(32.19% 0.0242 -0.1577)
OKLCHoklch(32.19% 0.16 278.7)
XYZxyz(5.2676, 2.8398, 21.0352)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B81 #73811B
analogous
#1B4081 #291B81 #5C1B81
triadic
#291B81 #81291B #1B8129
tetradic
#291B81 #811B40 #73811B #1B815C
square
#291B81 #811B40 #73811B #1B815C
split-complementary
#291B81 #815C1B #40811B
monochromatic
#09061C #19104E #291B81 #3926B4 #543FD7

Accessibility & contrast

On white

13.39
#291B81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#291B81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B81
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B81#FFFFFF#000000##FFFFFF
##291B811.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003384
Deuteranopia (green-blind)
#002B7F
Tritanopia (blue-blind)
#00394D
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291b81;
/* rgb */ color: rgb(41, 27, 129);
/* oklch */ color: oklch(32.2% 0.160 278.7);
Tailwind
colors: {
  custom: {
    50: '#705aa7',
    500: '#291b81',
    950: '#000000',
  },
}
SCSS
$custom: #291b81;
$custom-light: #705aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#291b81",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 129
  },
  "hsl": {
    "h": 248.235,
    "s": 65.385,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32187,
    "c": 0.15953,
    "h": 278.7
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#291B81
secondary
#A5B543
accent
#E83FD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291B81

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

Preview Lab → · Contrast checker → · Palette generator →

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