#291784#291784

#291784 is a dark, vivid blue. Relative luminance 0.028; OKLCH L 32.0% C 0.167 H 278.8°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#291784
RGBrgb(41, 23, 132)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 83%, 52%)
CMYKcmyk(68.9%, 82.6%, 0%, 48.2%)
CIE-LABlab(19.01, 41.12, -57.12)
CIE-LCHlch(19.01, 70.38, 305.75°)
OKLaboklab(32.02% 0.0255 -0.165)
OKLCHoklch(32.02% 0.167 278.8)
XYZxyz(5.3844, 2.7497, 22.0723)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291784 #728417
analogous
#173C84 #291784 #5F1784
triadic
#291784 #842917 #178429
tetradic
#291784 #84173C #728417 #17845F
square
#291784 #84173C #728417 #17845F
split-complementary
#291784 #845F17 #3C8417
monochromatic
#09051C #190E50 #291784 #3920B8 #5439DC

Accessibility & contrast

On white

13.55
#291784 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#291784 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291784
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291784#FFFFFF#000000##FFFFFF
##2917841.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003287
Deuteranopia (green-blind)
#002A82
Tritanopia (blue-blind)
#00394E
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #291784;
/* rgb */ color: rgb(41, 23, 132);
/* oklch */ color: oklch(32.0% 0.167 278.8);
Tailwind
colors: {
  custom: {
    50: '#7158a9',
    500: '#291784',
    950: '#000000',
  },
}
SCSS
$custom: #291784;
$custom-light: #7158a9;
$custom-dark: #000000;
JSON
{
  "hex": "#291784",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 132
  },
  "hsl": {
    "h": 249.908,
    "s": 70.323,
    "l": 30.392
  },
  "oklch": {
    "l": 0.32023,
    "c": 0.16694,
    "h": 278.8
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291784

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

Preview Lab → · Contrast checker → · Palette generator →

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