#291B97#291B97

#291B97 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.7% C 0.186 H 275.6°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#291B97
RGBrgb(41, 27, 151)
HSLhsl(247, 70%, 35%)
HSVhsv(247, 82%, 59%)
CMYKcmyk(72.8%, 82.1%, 0%, 40.8%)
CIE-LABlab(21.90, 45.10, -64.18)
CIE-LCHlch(21.90, 78.45, 305.10°)
OKLaboklab(34.68% 0.0181 -0.1855)
OKLCHoklch(34.68% 0.186 275.6)
XYZxyz(6.8905, 3.4890, 29.5825)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B97 #89971B
analogous
#1B4B97 #291B97 #671B97
triadic
#291B97 #97291B #1B9729
tetradic
#291B97 #971B4B #89971B #1B9767
square
#291B97 #971B4B #89971B #1B9767
split-complementary
#291B97 #97671B #4B971B
monochromatic
#0D082F #1B1263 #291B97 #3724CB #5E4DDF

Accessibility & contrast

On white

12.37
#291B97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#291B97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B97
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B97#FFFFFF#000000##FFFFFF
##291B971.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003A9A
Deuteranopia (green-blind)
#002F95
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291b97;
/* rgb */ color: rgb(41, 27, 151);
/* oklch */ color: oklch(34.7% 0.186 275.6);
Tailwind
colors: {
  custom: {
    50: '#755bb7',
    500: '#291b97',
    950: '#000000',
  },
}
SCSS
$custom: #291b97;
$custom-light: #755bb7;
$custom-dark: #000000;
JSON
{
  "hex": "#291b97",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 151
  },
  "hsl": {
    "h": 246.774,
    "s": 69.663,
    "l": 34.902
  },
  "oklch": {
    "l": 0.34679,
    "c": 0.18643,
    "h": 275.6
  },
  "luminance": 0.0349
}

Semantic roles & 50–950 ramp

primary
#291B97
secondary
#B4C14C
accent
#EC3BD8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291B97

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

Preview Lab → · Contrast checker → · Palette generator →

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