#291C78#291C78

#291C78 is a dark, vivid blue. Relative luminance 0.027; OKLCH L 31.4% C 0.147 H 280.1°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#291C78
RGBrgb(41, 28, 120)
HSLhsl(248, 62%, 29%)
HSVhsv(248, 77%, 47%)
CMYKcmyk(65.8%, 76.7%, 0%, 52.9%)
CIE-LABlab(18.62, 34.56, -50.14)
CIE-LCHlch(18.62, 60.90, 304.57°)
OKLaboklab(31.35% 0.0258 -0.1447)
OKLCHoklch(31.35% 0.147 280.1)
XYZxyz(4.7188, 2.6576, 18.0300)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291C78 #6B781C
analogous
#1C3D78 #291C78 #571C78
triadic
#291C78 #78291C #1C7829
tetradic
#291C78 #781C3D #6B781C #1C7857
square
#291C78 #781C3D #6B781C #1C7857
split-complementary
#291C78 #78571C #3D781C
monochromatic
#080619 #181046 #291C78 #3A28AA #523DD2

Accessibility & contrast

On white

13.71
#291C78 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291C78
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291C78#FFFFFF#000000##FFFFFF
##291C781.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317B
Deuteranopia (green-blind)
#002A76
Tritanopia (blue-blind)
#003648
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291c78;
/* rgb */ color: rgb(41, 28, 120);
/* oklch */ color: oklch(31.4% 0.147 280.1);
Tailwind
colors: {
  custom: {
    50: '#6e5aa0',
    500: '#291c78',
    950: '#000000',
  },
}
SCSS
$custom: #291c78;
$custom-light: #6e5aa0;
$custom-dark: #000000;
JSON
{
  "hex": "#291c78",
  "rgb": {
    "r": 41,
    "g": 28,
    "b": 120
  },
  "hsl": {
    "h": 248.478,
    "s": 62.162,
    "l": 29.02
  },
  "oklch": {
    "l": 0.31351,
    "c": 0.14698,
    "h": 280.1
  },
  "luminance": 0.02658
}

Semantic roles & 50–950 ramp

primary
#291C78
secondary
#9DAC44
accent
#E543CE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #291C78

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

Preview Lab → · Contrast checker → · Palette generator →

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