#291D8C#291D8C

#291D8C is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.7% C 0.171 H 276.8°. Best body text is #FFFFFF at 12.74:1 contrast (WCAG AA passes).

Color values

HEX#291D8C
RGBrgb(41, 29, 140)
HSLhsl(246, 66%, 33%)
HSVhsv(246, 79%, 55%)
CMYKcmyk(70.7%, 79.3%, 0%, 45.1%)
CIE-LABlab(20.99, 40.58, -58.87)
CIE-LCHlch(20.99, 71.50, 304.58°)
OKLaboklab(33.67% 0.0202 -0.1701)
OKLCHoklch(33.67% 0.171 276.8)
XYZxyz(6.0859, 3.2430, 25.1111)
Luminance0.0324 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D8C #808C1D
analogous
#1D498C #291D8C #601D8C
triadic
#291D8C #8C291D #1D8C29
tetradic
#291D8C #8C1D49 #808C1D #1D8C60
square
#291D8C #8C1D49 #808C1D #1D8C60
split-complementary
#291D8C #8C601D #498C1D
monochromatic
#0B0827 #1A1259 #291D8C #3828BF #594AD9

Accessibility & contrast

On white

12.74
#291D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291D8C
12.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291D8C#FFFFFF#000000##FFFFFF
##291D8C1.0012.741.6512.74
#FFFFFF12.741.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00378F
Deuteranopia (green-blind)
#002E8A
Tritanopia (blue-blind)
#003E54
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291d8c;
/* rgb */ color: rgb(41, 29, 140);
/* oklch */ color: oklch(33.7% 0.171 276.8);
Tailwind
colors: {
  custom: {
    50: '#735caf',
    500: '#291d8c',
    950: '#000000',
  },
}
SCSS
$custom: #291d8c;
$custom-light: #735caf;
$custom-dark: #000000;
JSON
{
  "hex": "#291d8c",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 246.486,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.33673,
    "c": 0.17133,
    "h": 276.8
  },
  "luminance": 0.03244
}

Semantic roles & 50–950 ramp

primary
#291D8C
secondary
#AFBC49
accent
#E93FD6
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #291D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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