#291F77#291F77

#291F77 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 31.7% C 0.142 H 279.6°. Best body text is #FFFFFF at 13.49:1 contrast (WCAG AA passes).

Color values

HEX#291F77
RGBrgb(41, 31, 119)
HSLhsl(247, 59%, 29%)
HSVhsv(247, 74%, 47%)
CMYKcmyk(65.5%, 73.9%, 0%, 53.3%)
CIE-LABlab(19.15, 32.43, -48.62)
CIE-LCHlch(19.15, 58.45, 303.71°)
OKLaboklab(31.7% 0.0238 -0.1403)
OKLCHoklch(31.7% 0.142 279.6)
XYZxyz(4.7332, 2.7829, 17.7369)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F77 #6D771F
analogous
#1F4177 #291F77 #551F77
triadic
#291F77 #77291F #1F7729
tetradic
#291F77 #771F41 #6D771F #1F7755
square
#291F77 #771F41 #6D771F #1F7755
split-complementary
#291F77 #77551F #41771F
monochromatic
#080618 #181246 #291F77 #3A2CA8 #5243CE

Accessibility & contrast

On white

13.49
#291F77 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291F77
13.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F77#FFFFFF#000000##FFFFFF
##291F771.0013.491.5613.49
#FFFFFF13.491.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327A
Deuteranopia (green-blind)
#002B75
Tritanopia (blue-blind)
#003748
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291f77;
/* rgb */ color: rgb(41, 31, 119);
/* oklch */ color: oklch(31.7% 0.142 279.6);
Tailwind
colors: {
  custom: {
    50: '#6e5c9f',
    500: '#291f77',
    950: '#000000',
  },
}
SCSS
$custom: #291f77;
$custom-light: #6e5c9f;
$custom-dark: #000000;
JSON
{
  "hex": "#291f77",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 119
  },
  "hsl": {
    "h": 246.818,
    "s": 58.667,
    "l": 29.412
  },
  "oklch": {
    "l": 0.317,
    "c": 0.14227,
    "h": 279.6
  },
  "luminance": 0.02783
}

Semantic roles & 50–950 ramp

primary
#291F77
secondary
#9FAB47
accent
#E246D0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040F
muted
#7B797E

Preview Lab

Preview with #291F77

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

Preview Lab → · Contrast checker → · Palette generator →

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