#291F9B#291F9B

#291F9B is a dark, vivid blue. Relative luminance 0.038; OKLCH L 35.6% C 0.188 H 274.7°. Best body text is #FFFFFF at 11.91:1 contrast (WCAG AA passes).

Color values

HEX#291F9B
RGBrgb(41, 31, 155)
HSLhsl(245, 67%, 36%)
HSVhsv(245, 80%, 61%)
CMYKcmyk(73.5%, 80%, 0%, 39.2%)
CIE-LABlab(23.06, 44.37, -64.73)
CIE-LCHlch(23.06, 78.48, 304.43°)
OKLaboklab(35.62% 0.0154 -0.1872)
OKLCHoklch(35.62% 0.188 274.7)
XYZxyz(7.3189, 3.8172, 31.3551)
Luminance0.0382 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F9B #919B1F
analogous
#1F539B #291F9B #671F9B
triadic
#291F9B #9B291F #1F9B29
tetradic
#291F9B #9B1F53 #919B1F #1F9B67
square
#291F9B #9B1F53 #919B1F #1F9B67
split-complementary
#291F9B #9B671F #539B1F
monochromatic
#0E0B35 #1C1568 #291F9B #3629CE #6257DD

Accessibility & contrast

On white

11.91
#291F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F9B
11.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F9B#FFFFFF#000000##FFFFFF
##291F9B1.0011.911.7611.91
#FFFFFF11.911.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003199
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #291f9b;
/* rgb */ color: rgb(41, 31, 155);
/* oklch */ color: oklch(35.6% 0.188 274.7);
Tailwind
colors: {
  custom: {
    50: '#765eba',
    500: '#291f9b',
    950: '#000000',
  },
}
SCSS
$custom: #291f9b;
$custom-light: #765eba;
$custom-dark: #000000;
JSON
{
  "hex": "#291f9b",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 244.839,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.35617,
    "c": 0.18784,
    "h": 274.7
  },
  "luminance": 0.03818
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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