#291F76#291F76

#291F76 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.6% C 0.141 H 279.8°. Best body text is #FFFFFF at 13.53:1 contrast (WCAG AA passes).

Color values

HEX#291F76
RGBrgb(41, 31, 118)
HSLhsl(247, 58%, 29%)
HSVhsv(247, 74%, 46%)
CMYKcmyk(65.3%, 73.7%, 0%, 53.7%)
CIE-LABlab(19.05, 32.09, -48.14)
CIE-LCHlch(19.05, 57.86, 303.69°)
OKLaboklab(31.6% 0.024 -0.1389)
OKLCHoklch(31.6% 0.141 279.8)
XYZxyz(4.6734, 2.7590, 17.4223)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F76 #6C761F
analogous
#1F4176 #291F76 #551F76
triadic
#291F76 #76291F #1F7629
tetradic
#291F76 #761F41 #6C761F #1F7655
square
#291F76 #761F41 #6C761F #1F7655
split-complementary
#291F76 #76551F #41761F
monochromatic
#080618 #181246 #291F76 #3A2CA6 #5242CD

Accessibility & contrast

On white

13.53
#291F76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291F76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F76
13.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F76#FFFFFF#000000##FFFFFF
##291F761.0013.531.5513.53
#FFFFFF13.531.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002B74
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291f76;
/* rgb */ color: rgb(41, 31, 118);
/* oklch */ color: oklch(31.6% 0.141 279.8);
Tailwind
colors: {
  custom: {
    50: '#6d5c9e',
    500: '#291f76',
    950: '#000000',
  },
}
SCSS
$custom: #291f76;
$custom-light: #6d5c9e;
$custom-dark: #000000;
JSON
{
  "hex": "#291f76",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 118
  },
  "hsl": {
    "h": 246.897,
    "s": 58.389,
    "l": 29.216
  },
  "oklch": {
    "l": 0.31598,
    "c": 0.14093,
    "h": 279.8
  },
  "luminance": 0.02759
}

Semantic roles & 50–950 ramp

primary
#291F76
secondary
#9EAA47
accent
#E246D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040E
muted
#7B797E

Preview Lab

Preview with #291F76

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

Preview Lab → · Contrast checker → · Palette generator →

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