#291F84#291F84

#291F84 is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.1% C 0.159 H 277.6°. Best body text is #FFFFFF at 12.94:1 contrast (WCAG AA passes).

Color values

HEX#291F84
RGBrgb(41, 31, 132)
HSLhsl(246, 62%, 32%)
HSVhsv(246, 77%, 52%)
CMYKcmyk(68.9%, 76.5%, 0%, 48.2%)
CIE-LABlab(20.51, 36.83, -54.65)
CIE-LCHlch(20.51, 65.91, 303.98°)
OKLaboklab(33.07% 0.021 -0.1579)
OKLCHoklch(33.07% 0.159 277.6)
XYZxyz(5.5679, 3.1169, 22.1335)
Luminance0.0312 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F84 #7A841F
analogous
#1F4784 #291F84 #5C1F84
triadic
#291F84 #84291F #1F8429
tetradic
#291F84 #841F47 #7A841F #1F845C
square
#291F84 #841F47 #7A841F #1F845C
split-complementary
#291F84 #845C1F #47841F
monochromatic
#0A0821 #1A1352 #291F84 #382BB6 #5749D4

Accessibility & contrast

On white

12.94
#291F84 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#291F84 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F84
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F84#FFFFFF#000000##FFFFFF
##291F841.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003587
Deuteranopia (green-blind)
#002D82
Tritanopia (blue-blind)
#003C50
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #291f84;
/* rgb */ color: rgb(41, 31, 132);
/* oklch */ color: oklch(33.1% 0.159 277.6);
Tailwind
colors: {
  custom: {
    50: '#715da9',
    500: '#291f84',
    950: '#000000',
  },
}
SCSS
$custom: #291f84;
$custom-light: #715da9;
$custom-dark: #000000;
JSON
{
  "hex": "#291f84",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 132
  },
  "hsl": {
    "h": 245.941,
    "s": 61.963,
    "l": 31.961
  },
  "oklch": {
    "l": 0.3307,
    "c": 0.15927,
    "h": 277.6
  },
  "luminance": 0.03117
}

Semantic roles & 50–950 ramp

primary
#291F84
secondary
#ACB748
accent
#E543D5
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291F84

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

Preview Lab → · Contrast checker → · Palette generator →

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