#291F91#291F91

#291F91 is a dark, vivid blue. Relative luminance 0.035; OKLCH L 34.5% C 0.176 H 275.9°. Best body text is #FFFFFF at 12.36:1 contrast (WCAG AA passes).

Color values

HEX#291F91
RGBrgb(41, 31, 145)
HSLhsl(245, 65%, 35%)
HSVhsv(245, 79%, 57%)
CMYKcmyk(71.7%, 78.6%, 0%, 43.1%)
CIE-LABlab(21.93, 41.13, -60.44)
CIE-LCHlch(21.93, 73.11, 304.24°)
OKLaboklab(34.49% 0.0179 -0.1747)
OKLCHoklch(34.49% 0.176 275.9)
XYZxyz(6.5136, 3.4951, 27.1139)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F91 #87911F
analogous
#1F4E91 #291F91 #621F91
triadic
#291F91 #91291F #1F9129
tetradic
#291F91 #911F4E #87911F #1F9162
square
#291F91 #911F4E #87911F #1F9162
split-complementary
#291F91 #91621F #4E911F
monochromatic
#0C092C #1B145F #291F91 #372AC3 #5D51DA

Accessibility & contrast

On white

12.36
#291F91 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F91
12.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F91#FFFFFF#000000##FFFFFF
##291F911.0012.361.7012.36
#FFFFFF12.361.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003994
Deuteranopia (green-blind)
#002F8F
Tritanopia (blue-blind)
#004157
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291f91;
/* rgb */ color: rgb(41, 31, 145);
/* oklch */ color: oklch(34.5% 0.176 275.9);
Tailwind
colors: {
  custom: {
    50: '#745db2',
    500: '#291f91',
    950: '#000000',
  },
}
SCSS
$custom: #291f91;
$custom-light: #745db2;
$custom-dark: #000000;
JSON
{
  "hex": "#291f91",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 145
  },
  "hsl": {
    "h": 245.263,
    "s": 64.773,
    "l": 34.51
  },
  "oklch": {
    "l": 0.34493,
    "c": 0.17564,
    "h": 275.9
  },
  "luminance": 0.03496
}

Semantic roles & 50–950 ramp

primary
#291F91
secondary
#B3BD4F
accent
#E840D9
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #291F91

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

Preview Lab → · Contrast checker → · Palette generator →

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