#291F96#291F96

#291F96 is a dark, vivid blue. Relative luminance 0.037; OKLCH L 35.1% C 0.182 H 275.3°. Best body text is #FFFFFF at 12.13:1 contrast (WCAG AA passes).

Color values

HEX#291F96
RGBrgb(41, 31, 150)
HSLhsl(245, 66%, 35%)
HSVhsv(245, 79%, 59%)
CMYKcmyk(72.7%, 79.3%, 0%, 41.2%)
CIE-LABlab(22.49, 42.76, -62.60)
CIE-LCHlch(22.49, 75.81, 304.34°)
OKLaboklab(35.05% 0.0167 -0.181)
OKLCHoklch(35.05% 0.182 275.3)
XYZxyz(6.9076, 3.6527, 29.1893)
Luminance0.0365 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F96 #8C961F
analogous
#1F5096 #291F96 #641F96
triadic
#291F96 #96291F #1F9629
tetradic
#291F96 #961F50 #8C961F #1F9664
square
#291F96 #961F50 #8C961F #1F9664
split-complementary
#291F96 #96641F #50961F
monochromatic
#0D0A31 #1B1563 #291F96 #3729C9 #5F54DC

Accessibility & contrast

On white

12.13
#291F96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F96
12.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F96#FFFFFF#000000##FFFFFF
##291F961.0012.131.7312.13
#FFFFFF12.131.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.131.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291f96;
/* rgb */ color: rgb(41, 31, 150);
/* oklch */ color: oklch(35.1% 0.182 275.3);
Tailwind
colors: {
  custom: {
    50: '#755eb6',
    500: '#291f96',
    950: '#000000',
  },
}
SCSS
$custom: #291f96;
$custom-light: #755eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#291f96",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 150
  },
  "hsl": {
    "h": 245.042,
    "s": 65.746,
    "l": 35.49
  },
  "oklch": {
    "l": 0.35052,
    "c": 0.18178,
    "h": 275.3
  },
  "luminance": 0.03653
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291F96

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

Preview Lab → · Contrast checker → · Palette generator →

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