#291B8A#291B8A

#291B8A is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.2% C 0.171 H 277.3°. Best body text is #FFFFFF at 12.98:1 contrast (WCAG AA passes).

Color values

HEX#291B8A
RGBrgb(41, 27, 138)
HSLhsl(248, 67%, 32%)
HSVhsv(248, 80%, 54%)
CMYKcmyk(70.3%, 80.4%, 0%, 45.9%)
CIE-LABlab(20.40, 40.99, -58.60)
CIE-LCHlch(20.40, 71.51, 304.97°)
OKLaboklab(33.19% 0.0217 -0.1693)
OKLCHoklch(33.19% 0.171 277.3)
XYZxyz(5.8923, 3.0897, 24.3257)
Luminance0.0309 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B8A #7C8A1B
analogous
#1B448A #291B8A #611B8A
triadic
#291B8A #8A291B #1B8A29
tetradic
#291B8A #8A1B44 #7C8A1B #1B8A61
square
#291B8A #8A1B44 #7C8A1B #1B8A61
split-complementary
#291B8A #8A611B #448A1B
monochromatic
#0B0724 #1A1157 #291B8A #3825BD #5845DB

Accessibility & contrast

On white

12.98
#291B8A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#291B8A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B8A
12.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B8A#FFFFFF#000000##FFFFFF
##291B8A1.0012.981.6212.98
#FFFFFF12.981.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368D
Deuteranopia (green-blind)
#002C88
Tritanopia (blue-blind)
#003D52
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #291b8a;
/* rgb */ color: rgb(41, 27, 138);
/* oklch */ color: oklch(33.2% 0.171 277.3);
Tailwind
colors: {
  custom: {
    50: '#725bad',
    500: '#291b8a',
    950: '#000000',
  },
}
SCSS
$custom: #291b8a;
$custom-light: #725bad;
$custom-dark: #000000;
JSON
{
  "hex": "#291b8a",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 138
  },
  "hsl": {
    "h": 247.568,
    "s": 67.273,
    "l": 32.353
  },
  "oklch": {
    "l": 0.33192,
    "c": 0.17072,
    "h": 277.3
  },
  "luminance": 0.0309
}

Semantic roles & 50–950 ramp

primary
#291B8A
secondary
#ADBC45
accent
#EA3ED4
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291B8A

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

Preview Lab → · Contrast checker → · Palette generator →

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