#291793#291793

#291793 is a dark, vivid blue. Relative luminance 0.032; OKLCH L 33.8% C 0.185 H 276.5°. Best body text is #FFFFFF at 12.82:1 contrast (WCAG AA passes).

Color values

HEX#291793
RGBrgb(41, 23, 147)
HSLhsl(249, 73%, 33%)
HSVhsv(249, 84%, 58%)
CMYKcmyk(72.1%, 84.4%, 0%, 42.4%)
CIE-LABlab(20.79, 45.74, -63.56)
CIE-LCHlch(20.79, 78.31, 305.74°)
OKLaboklab(33.77% 0.0209 -0.1837)
OKLCHoklch(33.77% 0.185 276.5)
XYZxyz(6.4856, 3.1902, 27.8721)
Luminance0.0319 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291793 #819317
analogous
#174393 #291793 #671793
triadic
#291793 #932917 #179329
tetradic
#291793 #931743 #819317 #179367
square
#291793 #931743 #819317 #179367
split-complementary
#291793 #936717 #439317
monochromatic
#0B0629 #1A0F5E #291793 #381FC8 #5A43E2

Accessibility & contrast

On white

12.82
#291793 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291793
12.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291793#FFFFFF#000000##FFFFFF
##2917931.0012.821.6412.82
#FFFFFF12.821.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.821.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291793;
/* rgb */ color: rgb(41, 23, 147);
/* oklch */ color: oklch(33.8% 0.185 276.5);
Tailwind
colors: {
  custom: {
    50: '#7559b4',
    500: '#291793',
    950: '#000000',
  },
}
SCSS
$custom: #291793;
$custom-light: #7559b4;
$custom-dark: #000000;
JSON
{
  "hex": "#291793",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 147
  },
  "hsl": {
    "h": 248.71,
    "s": 72.941,
    "l": 33.333
  },
  "oklch": {
    "l": 0.33771,
    "c": 0.18485,
    "h": 276.5
  },
  "luminance": 0.03191
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #291793

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

Preview Lab → · Contrast checker → · Palette generator →

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