#291F97#291F97

#291F97 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.2% C 0.183 H 275.2°. Best body text is #FFFFFF at 12.09:1 contrast (WCAG AA passes).

Color values

HEX#291F97
RGBrgb(41, 31, 151)
HSLhsl(245, 66%, 36%)
HSVhsv(245, 79%, 59%)
CMYKcmyk(72.8%, 79.5%, 0%, 40.8%)
CIE-LABlab(22.60, 43.08, -63.03)
CIE-LCHlch(22.60, 76.34, 304.35°)
OKLaboklab(35.17% 0.0164 -0.1823)
OKLCHoklch(35.17% 0.183 275.2)
XYZxyz(6.9885, 3.6851, 29.6151)
Luminance0.0369 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F97 #8D971F
analogous
#1F5197 #291F97 #651F97
triadic
#291F97 #97291F #1F9729
tetradic
#291F97 #971F51 #8D971F #1F9765
square
#291F97 #971F51 #8D971F #1F9765
split-complementary
#291F97 #97651F #51971F
monochromatic
#0D0A31 #1B1564 #291F97 #3729CA #6054DC

Accessibility & contrast

On white

12.09
#291F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#291F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F97
12.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F97#FFFFFF#000000##FFFFFF
##291F971.0012.091.7412.09
#FFFFFF12.091.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.091.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291f97;
/* rgb */ color: rgb(41, 31, 151);
/* oklch */ color: oklch(35.2% 0.183 275.2);
Tailwind
colors: {
  custom: {
    50: '#755eb7',
    500: '#291f97',
    950: '#000000',
  },
}
SCSS
$custom: #291f97;
$custom-light: #755eb7;
$custom-dark: #000000;
JSON
{
  "hex": "#291f97",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 245,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.35165,
    "c": 0.183,
    "h": 275.2
  },
  "luminance": 0.03686
}

Semantic roles & 50–950 ramp

primary
#291F97
secondary
#B6BF52
accent
#E93FDB
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291F97

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

Preview Lab → · Contrast checker → · Palette generator →

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