#291987#291987

#291987 is a dark, vivid blue. Relative luminance 0.029; OKLCH L 32.6% C 0.169 H 278.0°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#291987
RGBrgb(41, 25, 135)
HSLhsl(249, 69%, 31%)
HSVhsv(249, 81%, 53%)
CMYKcmyk(69.6%, 81.5%, 0%, 47.1%)
CIE-LABlab(19.70, 41.06, -57.87)
CIE-LCHlch(19.70, 70.96, 305.36°)
OKLaboklab(32.61% 0.0236 -0.1672)
OKLCHoklch(32.61% 0.169 278)
XYZxyz(5.6338, 2.9155, 23.1828)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291987 #778719
analogous
#194087 #291987 #601987
triadic
#291987 #872919 #198729
tetradic
#291987 #871940 #778719 #198760
square
#291987 #871940 #778719 #198760
split-complementary
#291987 #876019 #408719
monochromatic
#0A0620 #190F53 #291987 #3923BB #563FDB

Accessibility & contrast

On white

13.26
#291987 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#291987 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291987
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291987#FFFFFF#000000##FFFFFF
##2919871.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00348A
Deuteranopia (green-blind)
#002B85
Tritanopia (blue-blind)
#003B50
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #291987;
/* rgb */ color: rgb(41, 25, 135);
/* oklch */ color: oklch(32.6% 0.169 278.0);
Tailwind
colors: {
  custom: {
    50: '#7259ab',
    500: '#291987',
    950: '#000000',
  },
}
SCSS
$custom: #291987;
$custom-light: #7259ab;
$custom-dark: #000000;
JSON
{
  "hex": "#291987",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 135
  },
  "hsl": {
    "h": 248.727,
    "s": 68.75,
    "l": 31.373
  },
  "oklch": {
    "l": 0.32605,
    "c": 0.16884,
    "h": 278
  },
  "luminance": 0.02916
}

Semantic roles & 50–950 ramp

primary
#291987
secondary
#A9BA41
accent
#EC3CD2
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090410
muted
#7B797F

Preview Lab

Preview with #291987

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

Preview Lab → · Contrast checker → · Palette generator →

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