#291E78#291E78

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

Color values

HEX#291E78
RGBrgb(41, 30, 120)
HSLhsl(247, 60%, 29%)
HSVhsv(247, 75%, 47%)
CMYKcmyk(65.8%, 75%, 0%, 52.9%)
CIE-LABlab(19.04, 33.38, -49.45)
CIE-LCHlch(19.04, 59.66, 304.02°)
OKLaboklab(31.65% 0.0244 -0.1427)
OKLCHoklch(31.65% 0.145 279.7)
XYZxyz(4.7678, 2.7557, 18.0463)
Luminance0.0276 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291E78 #6D781E
analogous
#1E4078 #291E78 #561E78
triadic
#291E78 #78291E #1E7829
tetradic
#291E78 #781E40 #6D781E #1E7856
square
#291E78 #781E40 #6D781E #1E7856
split-complementary
#291E78 #78561E #40781E
monochromatic
#080618 #181247 #291E78 #3A2AA9 #5241CF

Accessibility & contrast

On white

13.54
#291E78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291E78
13.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291E78#FFFFFF#000000##FFFFFF
##291E781.0013.541.5513.54
#FFFFFF13.541.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291e78;
/* rgb */ color: rgb(41, 30, 120);
/* oklch */ color: oklch(31.6% 0.145 279.7);
Tailwind
colors: {
  custom: {
    50: '#6e5ba0',
    500: '#291e78',
    950: '#000000',
  },
}
SCSS
$custom: #291e78;
$custom-light: #6e5ba0;
$custom-dark: #000000;
JSON
{
  "hex": "#291e78",
  "rgb": {
    "r": 41,
    "g": 30,
    "b": 120
  },
  "hsl": {
    "h": 247.333,
    "s": 60,
    "l": 29.412
  },
  "oklch": {
    "l": 0.31649,
    "c": 0.14475,
    "h": 279.7
  },
  "luminance": 0.02756
}

Semantic roles & 50–950 ramp

primary
#291E78
secondary
#9FAC46
accent
#E345D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #291E78

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

Preview Lab → · Contrast checker → · Palette generator →

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