#291F8E#291F8E

#291F8E is a dark, vivid blue. Relative luminance 0.034; OKLCH L 34.2% C 0.172 H 276.2°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#291F8E
RGBrgb(41, 31, 142)
HSLhsl(245, 64%, 34%)
HSVhsv(245, 78%, 56%)
CMYKcmyk(71.1%, 78.2%, 0%, 44.3%)
CIE-LABlab(21.59, 40.15, -59.12)
CIE-LCHlch(21.59, 71.47, 304.18°)
OKLaboklab(34.16% 0.0187 -0.1709)
OKLCHoklch(34.16% 0.172 276.2)
XYZxyz(6.2853, 3.4038, 25.9117)
Luminance0.0340 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291F8E #848E1F
analogous
#1F4D8E #291F8E #611F8E
triadic
#291F8E #8E291F #1F8E29
tetradic
#291F8E #8E1F4D #848E1F #1F8E61
square
#291F8E #8E1F4D #848E1F #1F8E61
split-complementary
#291F8E #8E611F #4D8E1F
monochromatic
#0C092A #1A145C #291F8E #382AC0 #5B4FD9

Accessibility & contrast

On white

12.49
#291F8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#291F8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291F8E
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291F8E#FFFFFF#000000##FFFFFF
##291F8E1.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003891
Deuteranopia (green-blind)
#002F8C
Tritanopia (blue-blind)
#004055
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #291f8e;
/* rgb */ color: rgb(41, 31, 142);
/* oklch */ color: oklch(34.2% 0.172 276.2);
Tailwind
colors: {
  custom: {
    50: '#735db0',
    500: '#291f8e',
    950: '#000000',
  },
}
SCSS
$custom: #291f8e;
$custom-light: #735db0;
$custom-dark: #000000;
JSON
{
  "hex": "#291f8e",
  "rgb": {
    "r": 41,
    "g": 31,
    "b": 142
  },
  "hsl": {
    "h": 245.405,
    "s": 64.162,
    "l": 33.922
  },
  "oklch": {
    "l": 0.3416,
    "c": 0.17191,
    "h": 276.2
  },
  "luminance": 0.03404
}

Semantic roles & 50–950 ramp

primary
#291F8E
secondary
#B2BB4D
accent
#E741D8
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #291F8E

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

Preview Lab → · Contrast checker → · Palette generator →

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