#291B8E#291B8E

#291B8E is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.6% C 0.176 H 276.7°. Best body text is #FFFFFF at 12.79:1 contrast (WCAG AA passes).

Color values

HEX#291B8E
RGBrgb(41, 27, 142)
HSLhsl(247, 68%, 33%)
HSVhsv(247, 81%, 56%)
CMYKcmyk(71.1%, 81%, 0%, 44.3%)
CIE-LABlab(20.86, 42.27, -60.34)
CIE-LCHlch(20.86, 73.67, 305.01°)
OKLaboklab(33.65% 0.0206 -0.1744)
OKLCHoklch(33.65% 0.176 276.7)
XYZxyz(6.1873, 3.2077, 25.8790)
Luminance0.0321 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B8E #808E1B
analogous
#1B478E #291B8E #621B8E
triadic
#291B8E #8E291B #1B8E29
tetradic
#291B8E #8E1B47 #808E1B #1B8E62
square
#291B8E #8E1B47 #808E1B #1B8E62
split-complementary
#291B8E #8E621B #478E1B
monochromatic
#0B0727 #1A115B #291B8E #3825C1 #5947DC

Accessibility & contrast

On white

12.79
#291B8E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#291B8E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B8E
12.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B8E#FFFFFF#000000##FFFFFF
##291B8E1.0012.791.6412.79
#FFFFFF12.791.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#002D8C
Tritanopia (blue-blind)
#003E55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291b8e;
/* rgb */ color: rgb(41, 27, 142);
/* oklch */ color: oklch(33.6% 0.176 276.7);
Tailwind
colors: {
  custom: {
    50: '#735bb0',
    500: '#291b8e',
    950: '#000000',
  },
}
SCSS
$custom: #291b8e;
$custom-light: #735bb0;
$custom-dark: #000000;
JSON
{
  "hex": "#291b8e",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 142
  },
  "hsl": {
    "h": 247.304,
    "s": 68.047,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33645,
    "c": 0.17561,
    "h": 276.7
  },
  "luminance": 0.03208
}

Semantic roles & 50–950 ramp

primary
#291B8E
secondary
#AFBE47
accent
#EB3DD6
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#090411
muted
#7B7980

Preview Lab

Preview with #291B8E

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

Preview Lab → · Contrast checker → · Palette generator →

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