#291788#291788

#291788 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.5% C 0.172 H 278.1°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#291788
RGBrgb(41, 23, 136)
HSLhsl(250, 71%, 31%)
HSVhsv(250, 83%, 53%)
CMYKcmyk(69.9%, 83.1%, 0%, 46.7%)
CIE-LABlab(19.48, 42.36, -58.87)
CIE-LCHlch(19.48, 72.52, 305.74°)
OKLaboklab(32.48% 0.0243 -0.17)
OKLCHoklch(32.48% 0.172 278.1)
XYZxyz(5.6633, 2.8613, 23.5416)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291788 #768817
analogous
#173D88 #291788 #611788
triadic
#291788 #882917 #178829
tetradic
#291788 #88173D #768817 #178861
square
#291788 #88173D #768817 #178861
split-complementary
#291788 #886117 #3D8817
monochromatic
#09051F #190E54 #291788 #3920BC #553BDE

Accessibility & contrast

On white

13.36
#291788 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#291788 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291788
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291788#FFFFFF#000000##FFFFFF
##2917881.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00338B
Deuteranopia (green-blind)
#002A86
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291788;
/* rgb */ color: rgb(41, 23, 136);
/* oklch */ color: oklch(32.5% 0.172 278.1);
Tailwind
colors: {
  custom: {
    50: '#7258ac',
    500: '#291788',
    950: '#000000',
  },
}
SCSS
$custom: #291788;
$custom-light: #7258ac;
$custom-dark: #000000;
JSON
{
  "hex": "#291788",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 136
  },
  "hsl": {
    "h": 249.558,
    "s": 71.069,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32484,
    "c": 0.17177,
    "h": 278.1
  },
  "luminance": 0.02862
}

Semantic roles & 50–950 ramp

primary
#291788
secondary
#A8BC3F
accent
#EE3AD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291788

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

Preview Lab → · Contrast checker → · Palette generator →

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