#291B8C#291B8C

#291B8C is a dark, vivid blue. Relative luminance 0.031; OKLCH L 33.4% C 0.173 H 277.0°. Best body text is #FFFFFF at 12.89:1 contrast (WCAG AA passes).

Color values

HEX#291B8C
RGBrgb(41, 27, 140)
HSLhsl(247, 68%, 33%)
HSVhsv(247, 81%, 55%)
CMYKcmyk(70.7%, 80.7%, 0%, 45.1%)
CIE-LABlab(20.63, 41.63, -59.47)
CIE-LCHlch(20.63, 72.60, 304.99°)
OKLaboklab(33.42% 0.0212 -0.1719)
OKLCHoklch(33.42% 0.173 277)
XYZxyz(6.0385, 3.1482, 25.0953)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B8C #7E8C1B
analogous
#1B458C #291B8C #621B8C
triadic
#291B8C #8C291B #1B8C29
tetradic
#291B8C #8C1B45 #7E8C1B #1B8C62
square
#291B8C #8C1B45 #7E8C1B #1B8C62
split-complementary
#291B8C #8C621B #458C1B
monochromatic
#0B0725 #1A1159 #291B8C #3825BF #5946DB

Accessibility & contrast

On white

12.89
#291B8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#291B8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B8C
12.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B8C#FFFFFF#000000##FFFFFF
##291B8C1.0012.891.6312.89
#FFFFFF12.891.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00368F
Deuteranopia (green-blind)
#002D8A
Tritanopia (blue-blind)
#003D53
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291b8c;
/* rgb */ color: rgb(41, 27, 140);
/* oklch */ color: oklch(33.4% 0.173 277.0);
Tailwind
colors: {
  custom: {
    50: '#735baf',
    500: '#291b8c',
    950: '#000000',
  },
}
SCSS
$custom: #291b8c;
$custom-light: #735baf;
$custom-dark: #000000;
JSON
{
  "hex": "#291b8c",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 140
  },
  "hsl": {
    "h": 247.434,
    "s": 67.665,
    "l": 32.745
  },
  "oklch": {
    "l": 0.33418,
    "c": 0.17317,
    "h": 277
  },
  "luminance": 0.03149
}

Semantic roles & 50–950 ramp

primary
#291B8C
secondary
#AEBD46
accent
#EB3DD5
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #291B8C

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

Preview Lab → · Contrast checker → · Palette generator →

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