#291B78#291B78

#291B78 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.2% C 0.148 H 280.3°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#291B78
RGBrgb(41, 27, 120)
HSLhsl(249, 63%, 29%)
HSVhsv(249, 78%, 47%)
CMYKcmyk(65.8%, 77.5%, 0%, 52.9%)
CIE-LABlab(18.41, 35.13, -50.48)
CIE-LCHlch(18.41, 61.50, 304.84°)
OKLaboklab(31.21% 0.0265 -0.1457)
OKLCHoklch(31.21% 0.148 280.3)
XYZxyz(4.6955, 2.6110, 18.0222)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B78 #6A781B
analogous
#1B3C78 #291B78 #581B78
triadic
#291B78 #78291B #1B7829
tetradic
#291B78 #781B3C #6A781B #1B7858
square
#291B78 #781B3C #6A781B #1B7858
split-complementary
#291B78 #78581B #3C781B
monochromatic
#090619 #181046 #291B78 #3A26AA #523BD3

Accessibility & contrast

On white

13.80
#291B78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#291B78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B78
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B78#FFFFFF#000000##FFFFFF
##291B781.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00307B
Deuteranopia (green-blind)
#002976
Tritanopia (blue-blind)
#003548
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291b78;
/* rgb */ color: rgb(41, 27, 120);
/* oklch */ color: oklch(31.2% 0.148 280.3);
Tailwind
colors: {
  custom: {
    50: '#6e59a0',
    500: '#291b78',
    950: '#000000',
  },
}
SCSS
$custom: #291b78;
$custom-light: #6e59a0;
$custom-dark: #000000;
JSON
{
  "hex": "#291b78",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 120
  },
  "hsl": {
    "h": 249.032,
    "s": 63.265,
    "l": 28.824
  },
  "oklch": {
    "l": 0.31207,
    "c": 0.14806,
    "h": 280.3
  },
  "luminance": 0.02611
}

Semantic roles & 50–950 ramp

primary
#291B78
secondary
#9CAC43
accent
#E641CD
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#08040F
muted
#7B797F

Preview Lab

Preview with #291B78

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

Preview Lab → · Contrast checker → · Palette generator →

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