#291785#291785

#291785 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.1% C 0.168 H 278.6°. Best body text is #FFFFFF at 13.50:1 contrast (WCAG AA passes).

Color values

HEX#291785
RGBrgb(41, 23, 133)
HSLhsl(250, 71%, 31%)
HSVhsv(250, 83%, 52%)
CMYKcmyk(69.2%, 82.7%, 0%, 47.8%)
CIE-LABlab(19.13, 41.43, -57.56)
CIE-LCHlch(19.13, 70.92, 305.74°)
OKLaboklab(32.14% 0.0252 -0.1662)
OKLCHoklch(32.14% 0.168 278.6)
XYZxyz(5.4531, 2.7772, 22.4344)
Luminance0.0278 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291785 #738517
analogous
#173C85 #291785 #601785
triadic
#291785 #852917 #178529
tetradic
#291785 #85173C #738517 #178560
square
#291785 #85173C #738517 #178560
split-complementary
#291785 #856017 #3C8517
monochromatic
#09051D #190E51 #291785 #3920B9 #543ADD

Accessibility & contrast

On white

13.50
#291785 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291785
13.50:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291785#FFFFFF#000000##FFFFFF
##2917851.0013.501.5613.50
#FFFFFF13.501.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.501.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003388
Deuteranopia (green-blind)
#002A83
Tritanopia (blue-blind)
#00394F
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291785;
/* rgb */ color: rgb(41, 23, 133);
/* oklch */ color: oklch(32.1% 0.168 278.6);
Tailwind
colors: {
  custom: {
    50: '#7258aa',
    500: '#291785',
    950: '#000000',
  },
}
SCSS
$custom: #291785;
$custom-light: #7258aa;
$custom-dark: #000000;
JSON
{
  "hex": "#291785",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 133
  },
  "hsl": {
    "h": 249.818,
    "s": 70.513,
    "l": 30.588
  },
  "oklch": {
    "l": 0.32138,
    "c": 0.16815,
    "h": 278.6
  },
  "luminance": 0.02778
}

Semantic roles & 50–950 ramp

primary
#291785
secondary
#A5B93F
accent
#ED3BD0
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291785

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

Preview Lab → · Contrast checker → · Palette generator →

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