#291F78#291F78

#291F78 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.8% C 0.144 H 279.5°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#291F78
RGBrgb(41, 31, 120)
HSLhsl(247, 59%, 30%)
HSVhsv(247, 74%, 47%)
CMYKcmyk(65.8%, 74.2%, 0%, 52.9%)
CIE-LABlab(19.25, 32.77, -49.09)
CIE-LCHlch(19.25, 59.03, 303.73°)
OKLaboklab(31.8% 0.0236 -0.1416)
OKLCHoklch(31.8% 0.144 279.5)
XYZxyz(4.7935, 2.8071, 18.0549)
Luminance0.0281 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F78 #6E781F
analogous
#1F4178 #291F78 #561F78
triadic
#291F78 #78291F #1F7829
tetradic
#291F78 #781F41 #6E781F #1F7856
square
#291F78 #781F41 #6E781F #1F7856
split-complementary
#291F78 #78561F #41781F
monochromatic
#080618 #181247 #291F78 #3A2CA9 #5343CE

Accessibility & contrast

On white

13.45
#291F78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#291F78 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F78
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F78#FFFFFF#000000##FFFFFF
##291F781.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327B
Deuteranopia (green-blind)
#002B76
Tritanopia (blue-blind)
#003749
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291f78;
/* rgb */ color: rgb(41, 31, 120);
/* oklch */ color: oklch(31.8% 0.144 279.5);
Tailwind
colors: {
  custom: {
    50: '#6e5ca0',
    500: '#291f78',
    950: '#000000',
  },
}
SCSS
$custom: #291f78;
$custom-light: #6e5ca0;
$custom-dark: #000000;
JSON
{
  "hex": "#291f78",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 120
  },
  "hsl": {
    "h": 246.742,
    "s": 58.94,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31803,
    "c": 0.14359,
    "h": 279.5
  },
  "luminance": 0.02807
}

Semantic roles & 50–950 ramp

primary
#291F78
secondary
#A0AB47
accent
#E246D1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #291F78

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

Preview Lab → · Contrast checker → · Palette generator →

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