#291373#291373

#291373 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.6% C 0.150 H 282.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#291373
RGBrgb(41, 19, 115)
HSLhsl(254, 72%, 26%)
HSVhsv(254, 83%, 45%)
CMYKcmyk(64.3%, 83.5%, 0%, 54.9%)
CIE-LABlab(16.38, 37.78, -50.61)
CIE-LCHlch(16.38, 63.16, 306.74°)
OKLaboklab(29.62% 0.0332 -0.146)
OKLCHoklch(29.62% 0.15 282.8)
XYZxyz(4.2409, 2.1747, 16.4126)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291373 #5D7313
analogous
#132D73 #291373 #591373
triadic
#291373 #732913 #137329
tetradic
#291373 #73132D #5D7313 #137359
square
#291373 #73132D #5D7313 #137359
split-complementary
#291373 #735913 #2D7313
monochromatic
#09041A #160A3E #291373 #3C1CA8 #4F25DB

Accessibility & contrast

On white

14.63
#291373 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#291373 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291373
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291373#FFFFFF#000000##FFFFFF
##2913731.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B76
Deuteranopia (green-blind)
#002571
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291373;
/* rgb */ color: rgb(41, 19, 115);
/* oklch */ color: oklch(29.6% 0.150 282.8);
Tailwind
colors: {
  custom: {
    50: '#6e559c',
    500: '#291373',
    950: '#000000',
  },
}
SCSS
$custom: #291373;
$custom-light: #6e559c;
$custom-dark: #000000;
JSON
{
  "hex": "#291373",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 115
  },
  "hsl": {
    "h": 253.75,
    "s": 71.642,
    "l": 26.275
  },
  "oklch": {
    "l": 0.29619,
    "c": 0.14971,
    "h": 282.8
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#291373
secondary
#90AA38
accent
#EE39C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291373

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

Preview Lab → · Contrast checker → · Palette generator →

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