#291F88#291F88

#291F88 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.5% C 0.164 H 277.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#291F88
RGBrgb(41, 31, 136)
HSLhsl(246, 63%, 33%)
HSVhsv(246, 77%, 53%)
CMYKcmyk(69.9%, 77.2%, 0%, 46.7%)
CIE-LABlab(20.94, 38.17, -56.46)
CIE-LCHlch(20.94, 68.15, 304.06°)
OKLaboklab(33.5% 0.0201 -0.1631)
OKLCHoklch(33.5% 0.164 277)
XYZxyz(5.8469, 3.2284, 23.6028)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F88 #7E881F
analogous
#1F4A88 #291F88 #5D1F88
triadic
#291F88 #88291F #1F8829
tetradic
#291F88 #881F4A #7E881F #1F885D
square
#291F88 #881F4A #7E881F #1F885D
split-complementary
#291F88 #885D1F #4A881F
monochromatic
#0B0824 #1A1456 #291F88 #382ABA #594BD6

Accessibility & contrast

On white

12.76
#291F88 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F88
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F88#FFFFFF#000000##FFFFFF
##291F881.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378B
Deuteranopia (green-blind)
#002E86
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291f88;
/* rgb */ color: rgb(41, 31, 136);
/* oklch */ color: oklch(33.5% 0.164 277.0);
Tailwind
colors: {
  custom: {
    50: '#725dac',
    500: '#291f88',
    950: '#000000',
  },
}
SCSS
$custom: #291f88;
$custom-light: #725dac;
$custom-dark: #000000;
JSON
{
  "hex": "#291f88",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 136
  },
  "hsl": {
    "h": 245.714,
    "s": 62.874,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33502,
    "c": 0.16437,
    "h": 277
  },
  "luminance": 0.03229
}

Semantic roles & 50–950 ramp

primary
#291F88
secondary
#AEB94A
accent
#E642D6
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F88

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

Preview Lab → · Contrast checker → · Palette generator →

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