#291B8F#291B8F

#291B8F is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.177 H 276.6°. Best body text is #FFFFFF at 12.75:1 contrast (WCAG AA passes).

Color values

HEX#291B8F
RGBrgb(41, 27, 143)
HSLhsl(247, 68%, 33%)
HSVhsv(247, 81%, 56%)
CMYKcmyk(71.3%, 81.1%, 0%, 43.9%)
CIE-LABlab(20.97, 42.59, -60.77)
CIE-LCHlch(20.97, 74.21, 305.02°)
OKLaboklab(33.76% 0.0204 -0.1756)
OKLCHoklch(33.76% 0.177 276.6)
XYZxyz(6.2627, 3.2379, 26.2762)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B8F #818F1B
analogous
#1B478F #291B8F #631B8F
triadic
#291B8F #8F291B #1B8F29
tetradic
#291B8F #8F1B47 #818F1B #1B8F63
square
#291B8F #8F1B47 #818F1B #1B8F63
split-complementary
#291B8F #8F631B #478F1B
monochromatic
#0B0828 #1A115C #291B8F #3825C2 #5A48DC

Accessibility & contrast

On white

12.75
#291B8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#291B8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B8F
12.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B8F#FFFFFF#000000##FFFFFF
##291B8F1.0012.751.6512.75
#FFFFFF12.751.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#002D8D
Tritanopia (blue-blind)
#003F55
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291b8f;
/* rgb */ color: rgb(41, 27, 143);
/* oklch */ color: oklch(33.8% 0.177 276.6);
Tailwind
colors: {
  custom: {
    50: '#745bb1',
    500: '#291b8f',
    950: '#000000',
  },
}
SCSS
$custom: #291b8f;
$custom-light: #745bb1;
$custom-dark: #000000;
JSON
{
  "hex": "#291b8f",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 143
  },
  "hsl": {
    "h": 247.241,
    "s": 68.235,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33759,
    "c": 0.17683,
    "h": 276.6
  },
  "luminance": 0.03238
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291B8F

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

Preview Lab → · Contrast checker → · Palette generator →

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