#291340#291340

#291340 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.5% C 0.083 H 303.3°. Best body text is #FFFFFF at 16.65:1 contrast (WCAG AA passes).

Color values

HEX#291340
RGBrgb(41, 19, 64)
HSLhsl(269, 54%, 16%)
HSVhsv(269, 70%, 25%)
CMYKcmyk(35.9%, 70.3%, 0%, 74.9%)
CIE-LABlab(11.33, 21.90, -24.47)
CIE-LCHlch(11.33, 32.84, 311.83°)
OKLaboklab(24.5% 0.0456 -0.0693)
OKLCHoklch(24.5% 0.083 303.3)
XYZxyz(2.0725, 1.3073, 4.9926)
Luminance0.0131 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291340 #2A4013
analogous
#131440 #291340 #401340
triadic
#291340 #402913 #134029
tetradic
#291340 #401314 #2A4013 #134040
square
#291340 #401314 #2A4013 #134040
split-complementary
#291340 #404013 #144013
monochromatic
#0F0718 #0F0718 #291340 #47216F #652F9E

Accessibility & contrast

On white

16.65
#291340 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.26
#291340 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291340
16.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291340#FFFFFF#000000##FFFFFF
##2913401.0016.651.2616.65
#FFFFFF16.651.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E41
Deuteranopia (green-blind)
#071E3F
Tritanopia (blue-blind)
#251C27
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #291340;
/* rgb */ color: rgb(41, 19, 64);
/* oklch */ color: oklch(24.5% 0.083 303.3);
Tailwind
colors: {
  custom: {
    50: '#655275',
    500: '#291340',
    950: '#000000',
  },
}
SCSS
$custom: #291340;
$custom-light: #655275;
$custom-dark: #000000;
JSON
{
  "hex": "#291340",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 64
  },
  "hsl": {
    "h": 269.333,
    "s": 54.217,
    "l": 16.275
  },
  "oklch": {
    "l": 0.245,
    "c": 0.08297,
    "h": 303.3
  },
  "luminance": 0.01307
}

Semantic roles & 50–950 ramp

primary
#291340
secondary
#587936
accent
#DE4A96
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #291340

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

Preview Lab → · Contrast checker → · Palette generator →

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