#291F9A#291F9A

#291F9A is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.5% C 0.187 H 274.8°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#291F9A
RGBrgb(41, 31, 154)
HSLhsl(245, 66%, 36%)
HSVhsv(245, 80%, 60%)
CMYKcmyk(73.4%, 79.9%, 0%, 39.6%)
CIE-LABlab(22.94, 44.05, -64.31)
CIE-LCHlch(22.94, 77.94, 304.41°)
OKLaboklab(35.5% 0.0157 -0.186)
OKLCHoklch(35.5% 0.187 274.8)
XYZxyz(7.2352, 3.7838, 30.9146)
Luminance0.0378 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F9A #909A1F
analogous
#1F539A #291F9A #671F9A
triadic
#291F9A #9A291F #1F9A29
tetradic
#291F9A #9A1F53 #909A1F #1F9A67
square
#291F9A #9A1F53 #909A1F #1F9A67
split-complementary
#291F9A #9A671F #539A1F
monochromatic
#0E0A34 #1B1567 #291F9A #3729CD #6156DD

Accessibility & contrast

On white

11.95
#291F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#291F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F9A
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F9A#FFFFFF#000000##FFFFFF
##291F9A1.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003198
Tritanopia (blue-blind)
#00455C
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #291f9a;
/* rgb */ color: rgb(41, 31, 154);
/* oklch */ color: oklch(35.5% 0.187 274.8);
Tailwind
colors: {
  custom: {
    50: '#765eb9',
    500: '#291f9a',
    950: '#000000',
  },
}
SCSS
$custom: #291f9a;
$custom-light: #765eb9;
$custom-dark: #000000;
JSON
{
  "hex": "#291f9a",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 244.878,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.35504,
    "c": 0.18663,
    "h": 274.8
  },
  "luminance": 0.03784
}

Semantic roles & 50–950 ramp

primary
#291F9A
secondary
#B8C154
accent
#E93EDC
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0412
muted
#7C7981

Preview Lab

Preview with #291F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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