#291E8C#291E8C

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

Color values

HEX#291E8C
RGBrgb(41, 30, 140)
HSLhsl(246, 65%, 33%)
HSVhsv(246, 79%, 55%)
CMYKcmyk(70.7%, 78.6%, 0%, 45.1%)
CIE-LABlab(21.18, 40.04, -58.56)
CIE-LCHlch(21.18, 70.94, 304.36°)
OKLaboklab(33.81% 0.0197 -0.1693)
OKLCHoklch(33.81% 0.17 276.6)
XYZxyz(6.1108, 3.2929, 25.1194)
Luminance0.0329 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291E8C #818C1E
analogous
#1E4A8C #291E8C #601E8C
triadic
#291E8C #8C291E #1E8C29
tetradic
#291E8C #8C1E4A #818C1E #1E8C60
square
#291E8C #8C1E4A #818C1E #1E8C60
split-complementary
#291E8C #8C601E #4A8C1E
monochromatic
#0B0827 #1A135A #291E8C #3829BE #5A4CD9

Accessibility & contrast

On white

12.66
#291E8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#291E8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291E8C
12.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291E8C#FFFFFF#000000##FFFFFF
##291E8C1.0012.661.6612.66
#FFFFFF12.661.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.661.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291e8c;
/* rgb */ color: rgb(41, 30, 140);
/* oklch */ color: oklch(33.8% 0.170 276.6);
Tailwind
colors: {
  custom: {
    50: '#735caf',
    500: '#291e8c',
    950: '#000000',
  },
}
SCSS
$custom: #291e8c;
$custom-light: #735caf;
$custom-dark: #000000;
JSON
{
  "hex": "#291e8c",
  "rgb": {
    "r": 41,
    "g": 30,
    "b": 140
  },
  "hsl": {
    "h": 246,
    "s": 64.706,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33805,
    "c": 0.17039,
    "h": 276.6
  },
  "luminance": 0.03293
}

Semantic roles & 50–950 ramp

primary
#291E8C
secondary
#B0BB4B
accent
#E840D7
background
#F7F5FA
surface
#EDE9F5
border
#C8C5CF
text
#090410
muted
#7B797F

Preview Lab

Preview with #291E8C

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

Preview Lab → · Contrast checker → · Palette generator →

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