#291794#291794

#291794 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.9% C 0.186 H 276.3°. Best body text is #FFFFFF at 12.77:1 contrast (WCAG AA passes).

Color values

HEX#291794
RGBrgb(41, 23, 148)
HSLhsl(249, 73%, 34%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(72.3%, 84.5%, 0%, 42%)
CIE-LABlab(20.91, 46.04, -63.98)
CIE-LCHlch(20.91, 78.82, 305.74°)
OKLaboklab(33.89% 0.0205 -0.1849)
OKLCHoklch(33.89% 0.186 276.3)
XYZxyz(6.5644, 3.2217, 28.2871)
Luminance0.0322 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291794 #829417
analogous
#174394 #291794 #671794
triadic
#291794 #942917 #179429
tetradic
#291794 #941743 #829417 #179467
square
#291794 #941743 #829417 #179467
split-complementary
#291794 #946717 #439417
monochromatic
#0C072A #1A0F5F #291794 #381FC9 #5A44E2

Accessibility & contrast

On white

12.77
#291794 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#291794 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291794
12.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291794#FFFFFF#000000##FFFFFF
##2917941.0012.771.6412.77
#FFFFFF12.771.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.771.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003797
Deuteranopia (green-blind)
#002D92
Tritanopia (blue-blind)
#003F57
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #291794;
/* rgb */ color: rgb(41, 23, 148);
/* oklch */ color: oklch(33.9% 0.186 276.3);
Tailwind
colors: {
  custom: {
    50: '#7559b5',
    500: '#291794',
    950: '#000000',
  },
}
SCSS
$custom: #291794;
$custom-light: #7559b5;
$custom-dark: #000000;
JSON
{
  "hex": "#291794",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 148
  },
  "hsl": {
    "h": 248.64,
    "s": 73.099,
    "l": 33.529
  },
  "oklch": {
    "l": 0.33889,
    "c": 0.18603,
    "h": 276.3
  },
  "luminance": 0.03222
}

Semantic roles & 50–950 ramp

primary
#291794
secondary
#B0C344
accent
#F038D5
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #291794

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

Preview Lab → · Contrast checker → · Palette generator →

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