#291E97#291E97

#291E97 is a dark, vivid blue. Relative luminance 0.036; OKLCH L 35.0% C 0.184 H 275.3°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#291E97
RGBrgb(41, 30, 151)
HSLhsl(245, 67%, 35%)
HSVhsv(245, 80%, 59%)
CMYKcmyk(72.8%, 80.1%, 0%, 40.8%)
CIE-LABlab(22.42, 43.60, -63.33)
CIE-LCHlch(22.42, 76.89, 304.55°)
OKLaboklab(35.04% 0.0169 -0.1831)
OKLCHoklch(35.04% 0.184 275.3)
XYZxyz(6.9628, 3.6337, 29.6066)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291E97 #8C971E
analogous
#1E4F97 #291E97 #661E97
triadic
#291E97 #97291E #1E9729
tetradic
#291E97 #971E4F #8C971E #1E9766
square
#291E97 #971E4F #8C971E #1E9766
split-complementary
#291E97 #97661E #4F971E
monochromatic
#0D0A31 #1B1464 #291E97 #3728CA #5F53DD

Accessibility & contrast

On white

12.16
#291E97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#291E97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291E97
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291E97#FFFFFF#000000##FFFFFF
##291E971.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003B9A
Deuteranopia (green-blind)
#003095
Tritanopia (blue-blind)
#00435A
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #291e97;
/* rgb */ color: rgb(41, 30, 151);
/* oklch */ color: oklch(35.0% 0.184 275.3);
Tailwind
colors: {
  custom: {
    50: '#755db7',
    500: '#291e97',
    950: '#000000',
  },
}
SCSS
$custom: #291e97;
$custom-light: #755db7;
$custom-dark: #000000;
JSON
{
  "hex": "#291e97",
  "rgb": {
    "r": 41,
    "g": 30,
    "b": 151
  },
  "hsl": {
    "h": 245.455,
    "s": 66.851,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35039,
    "c": 0.18389,
    "h": 275.3
  },
  "luminance": 0.03634
}

Semantic roles & 50–950 ramp

primary
#291E97
secondary
#B6C051
accent
#EA3EDA
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291E97

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

Preview Lab → · Contrast checker → · Palette generator →

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