#291B82#291B82

#291B82 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.3% C 0.161 H 278.6°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#291B82
RGBrgb(41, 27, 130)
HSLhsl(248, 66%, 31%)
HSVhsv(248, 79%, 51%)
CMYKcmyk(68.5%, 79.2%, 0%, 49%)
CIE-LABlab(19.50, 38.41, -55.05)
CIE-LCHlch(19.50, 67.13, 304.91°)
OKLaboklab(32.3% 0.0239 -0.159)
OKLCHoklch(32.3% 0.161 278.6)
XYZxyz(5.3344, 2.8665, 21.3870)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B82 #74821B
analogous
#1B4082 #291B82 #5C1B82
triadic
#291B82 #82291B #1B8229
tetradic
#291B82 #821B40 #74821B #1B825C
square
#291B82 #821B40 #74821B #1B825C
split-complementary
#291B82 #825C1B #40821B
monochromatic
#09061D #19104F #291B82 #3926B5 #5540D7

Accessibility & contrast

On white

13.35
#291B82 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#291B82 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B82
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B82#FFFFFF#000000##FFFFFF
##291B821.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003385
Deuteranopia (green-blind)
#002B80
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291b82;
/* rgb */ color: rgb(41, 27, 130);
/* oklch */ color: oklch(32.3% 0.161 278.6);
Tailwind
colors: {
  custom: {
    50: '#715aa7',
    500: '#291b82',
    950: '#000000',
  },
}
SCSS
$custom: #291b82;
$custom-light: #715aa7;
$custom-dark: #000000;
JSON
{
  "hex": "#291b82",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 130
  },
  "hsl": {
    "h": 248.155,
    "s": 65.605,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32297,
    "c": 0.16079,
    "h": 278.6
  },
  "luminance": 0.02867
}

Semantic roles & 50–950 ramp

primary
#291B82
secondary
#A6B643
accent
#E93FD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291B82

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

Preview Lab → · Contrast checker → · Palette generator →

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