#291F9D#291F9D

#291F9D is a dark, vivid blue. Relative luminance 0.039; OKLCH L 35.8% C 0.190 H 274.5°. Best body text is #FFFFFF at 11.82:1 contrast (WCAG AA passes).

Color values

HEX#291F9D
RGBrgb(41, 31, 157)
HSLhsl(245, 67%, 37%)
HSVhsv(245, 80%, 62%)
CMYKcmyk(73.9%, 80.3%, 0%, 38.4%)
CIE-LABlab(23.29, 45.00, -65.58)
CIE-LCHlch(23.29, 79.53, 304.46°)
OKLaboklab(35.85% 0.0149 -0.1897)
OKLCHoklch(35.85% 0.19 274.5)
XYZxyz(7.4882, 3.8850, 32.2470)
Luminance0.0389 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F9D #939D1F
analogous
#1F549D #291F9D #681F9D
triadic
#291F9D #9D291F #1F9D29
tetradic
#291F9D #9D1F54 #939D1F #1F9D68
square
#291F9D #9D1F54 #939D1F #1F9D68
split-complementary
#291F9D #9D681F #549D1F
monochromatic
#0E0B37 #1C156A #291F9D #3629D0 #6358DE

Accessibility & contrast

On white

11.82
#291F9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#291F9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F9D
11.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F9D#FFFFFF#000000##FFFFFF
##291F9D1.0011.821.7811.82
#FFFFFF11.821.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA0
Deuteranopia (green-blind)
#00329B
Tritanopia (blue-blind)
#00465E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #291f9d;
/* rgb */ color: rgb(41, 31, 157);
/* oklch */ color: oklch(35.8% 0.190 274.5);
Tailwind
colors: {
  custom: {
    50: '#775ebb',
    500: '#291f9d',
    950: '#000000',
  },
}
SCSS
$custom: #291f9d;
$custom-light: #775ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#291f9d",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 157
  },
  "hsl": {
    "h": 244.762,
    "s": 67.021,
    "l": 36.863
  },
  "oklch": {
    "l": 0.35845,
    "c": 0.19025,
    "h": 274.5
  },
  "luminance": 0.03886
}

Semantic roles & 50–950 ramp

primary
#291F9D
secondary
#B9C256
accent
#EA3EDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #291F9D

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

Preview Lab → · Contrast checker → · Palette generator →

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