#291887#291887

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

Color values

HEX#291887
RGBrgb(41, 24, 135)
HSLhsl(249, 70%, 31%)
HSVhsv(249, 82%, 53%)
CMYKcmyk(69.6%, 82.2%, 0%, 47.1%)
CIE-LABlab(19.53, 41.56, -58.16)
CIE-LCHlch(19.53, 71.48, 305.55°)
OKLaboklab(32.49% 0.0241 -0.168)
OKLCHoklch(32.49% 0.17 278.2)
XYZxyz(5.6128, 2.8735, 23.1758)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291887 #768718
analogous
#183E87 #291887 #601887
triadic
#291887 #872918 #188729
tetradic
#291887 #87183E #768718 #188760
square
#291887 #87183E #768718 #188760
split-complementary
#291887 #876018 #3E8718
monochromatic
#09061F #190F53 #291887 #3921BB #553DDC

Accessibility & contrast

On white

13.34
#291887 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291887
13.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291887#FFFFFF#000000##FFFFFF
##2918871.0013.341.5713.34
#FFFFFF13.341.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003A50
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #291887;
/* rgb */ color: rgb(41, 24, 135);
/* oklch */ color: oklch(32.5% 0.170 278.2);
Tailwind
colors: {
  custom: {
    50: '#7259ab',
    500: '#291887',
    950: '#000000',
  },
}
SCSS
$custom: #291887;
$custom-light: #7259ab;
$custom-dark: #000000;
JSON
{
  "hex": "#291887",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 135
  },
  "hsl": {
    "h": 249.189,
    "s": 69.811,
    "l": 31.176
  },
  "oklch": {
    "l": 0.32485,
    "c": 0.16972,
    "h": 278.2
  },
  "luminance": 0.02874
}

Semantic roles & 50–950 ramp

primary
#291887
secondary
#A8BB40
accent
#ED3BD1
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291887

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

Preview Lab → · Contrast checker → · Palette generator →

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