#291F71#291F71

#291F71 is a dark, vivid blue. Relative luminance 0.026; OKLCH L 31.1% C 0.134 H 280.7°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#291F71
RGBrgb(41, 31, 113)
HSLhsl(247, 57%, 28%)
HSVhsv(247, 73%, 44%)
CMYKcmyk(63.7%, 72.6%, 0%, 55.7%)
CIE-LABlab(18.55, 30.37, -45.74)
CIE-LCHlch(18.55, 54.91, 303.59°)
OKLaboklab(31.09% 0.025 -0.1318)
OKLCHoklch(31.09% 0.134 280.7)
XYZxyz(4.3841, 2.6433, 15.8988)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F71 #67711F
analogous
#1F3E71 #291F71 #521F71
triadic
#291F71 #71291F #1F7129
tetradic
#291F71 #711F3E #67711F #1F7152
square
#291F71 #711F3E #67711F #1F7152
split-complementary
#291F71 #71521F #3E711F
monochromatic
#090718 #181241 #291F71 #3A2CA1 #5140CB

Accessibility & contrast

On white

13.74
#291F71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#291F71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F71
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F71#FFFFFF#000000##FFFFFF
##291F711.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002A6F
Tritanopia (blue-blind)
#003545
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291f71;
/* rgb */ color: rgb(41, 31, 113);
/* oklch */ color: oklch(31.1% 0.134 280.7);
Tailwind
colors: {
  custom: {
    50: '#6c5c9b',
    500: '#291f71',
    950: '#000000',
  },
}
SCSS
$custom: #291f71;
$custom-light: #6c5c9b;
$custom-dark: #000000;
JSON
{
  "hex": "#291f71",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 113
  },
  "hsl": {
    "h": 247.317,
    "s": 56.944,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3109,
    "c": 0.13417,
    "h": 280.7
  },
  "luminance": 0.02644
}

Semantic roles & 50–950 ramp

primary
#291F71
secondary
#99A547
accent
#E048CE
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08040E
muted
#7A797E

Preview Lab

Preview with #291F71

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

Preview Lab → · Contrast checker → · Palette generator →

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