#291F89#291F89

#291F89 is a dark, vivid blue. Relative luminance 0.033; OKLCH L 33.6% C 0.166 H 276.9°. Best body text is #FFFFFF at 12.71:1 contrast (WCAG AA passes).

Color values

HEX#291F89
RGBrgb(41, 31, 137)
HSLhsl(246, 63%, 33%)
HSVhsv(246, 77%, 54%)
CMYKcmyk(70.1%, 77.4%, 0%, 46.3%)
CIE-LABlab(21.05, 38.50, -56.91)
CIE-LCHlch(21.05, 68.71, 304.08°)
OKLaboklab(33.61% 0.0199 -0.1645)
OKLCHoklch(33.61% 0.166 276.9)
XYZxyz(5.9183, 3.2570, 23.9788)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F89 #7F891F
analogous
#1F4A89 #291F89 #5E1F89
triadic
#291F89 #89291F #1F8929
tetradic
#291F89 #891F4A #7F891F #1F895E
square
#291F89 #891F4A #7F891F #1F895E
split-complementary
#291F89 #895E1F #4A891F
monochromatic
#0B0825 #1A1457 #291F89 #382ABB #594CD6

Accessibility & contrast

On white

12.71
#291F89 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#291F89 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F89
12.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F89#FFFFFF#000000##FFFFFF
##291F891.0012.711.6512.71
#FFFFFF12.711.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378C
Deuteranopia (green-blind)
#002E87
Tritanopia (blue-blind)
#003E53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #291f89;
/* rgb */ color: rgb(41, 31, 137);
/* oklch */ color: oklch(33.6% 0.166 276.9);
Tailwind
colors: {
  custom: {
    50: '#725dad',
    500: '#291f89',
    950: '#000000',
  },
}
SCSS
$custom: #291f89;
$custom-light: #725dad;
$custom-dark: #000000;
JSON
{
  "hex": "#291f89",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 137
  },
  "hsl": {
    "h": 245.66,
    "s": 63.095,
    "l": 32.941
  },
  "oklch": {
    "l": 0.33611,
    "c": 0.16564,
    "h": 276.9
  },
  "luminance": 0.03258
}

Semantic roles & 50–950 ramp

primary
#291F89
secondary
#AFB94B
accent
#E642D7
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F89

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

Preview Lab → · Contrast checker → · Palette generator →

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