#291786#291786

#291786 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.3% C 0.169 H 278.5°. Best body text is #FFFFFF at 13.45:1 contrast (WCAG AA passes).

Color values

HEX#291786
RGBrgb(41, 23, 134)
HSLhsl(250, 71%, 31%)
HSVhsv(250, 83%, 53%)
CMYKcmyk(69.4%, 82.8%, 0%, 47.5%)
CIE-LABlab(19.25, 41.74, -58.00)
CIE-LCHlch(19.25, 71.45, 305.74°)
OKLaboklab(32.25% 0.0249 -0.1675)
OKLCHoklch(32.25% 0.169 278.5)
XYZxyz(5.5225, 2.8050, 22.8000)
Luminance0.0280 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291786 #748617
analogous
#173C86 #291786 #601786
triadic
#291786 #862917 #178629
tetradic
#291786 #86173C #748617 #178660
square
#291786 #86173C #748617 #178660
split-complementary
#291786 #866017 #3C8617
monochromatic
#09051E #190E52 #291786 #3920BA #553ADD

Accessibility & contrast

On white

13.45
#291786 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#291786 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291786
13.45:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291786#FFFFFF#000000##FFFFFF
##2917861.0013.451.5613.45
#FFFFFF13.451.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.451.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003389
Deuteranopia (green-blind)
#002A84
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291786;
/* rgb */ color: rgb(41, 23, 134);
/* oklch */ color: oklch(32.3% 0.169 278.5);
Tailwind
colors: {
  custom: {
    50: '#7258aa',
    500: '#291786',
    950: '#000000',
  },
}
SCSS
$custom: #291786;
$custom-light: #7258aa;
$custom-dark: #000000;
JSON
{
  "hex": "#291786",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 134
  },
  "hsl": {
    "h": 249.73,
    "s": 70.701,
    "l": 30.784
  },
  "oklch": {
    "l": 0.32253,
    "c": 0.16936,
    "h": 278.5
  },
  "luminance": 0.02805
}

Semantic roles & 50–950 ramp

primary
#291786
secondary
#A6BA3F
accent
#ED3AD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291786

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

Preview Lab → · Contrast checker → · Palette generator →

#291786 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva