#291342#291342

#291342 is a very dark, moderate violet. Relative luminance 0.013; OKLCH L 24.7% C 0.086 H 302.0°. Best body text is #FFFFFF at 16.59:1 contrast (WCAG AA passes).

Color values

HEX#291342
RGBrgb(41, 19, 66)
HSLhsl(268, 55%, 17%)
HSVhsv(268, 71%, 26%)
CMYKcmyk(37.9%, 71.2%, 0%, 74.1%)
CIE-LABlab(11.49, 22.50, -25.62)
CIE-LCHlch(11.49, 34.10, 311.29°)
OKLaboklab(24.67% 0.0454 -0.0727)
OKLCHoklch(24.67% 0.086 302)
XYZxyz(2.1305, 1.3305, 5.2978)
Luminance0.0133 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291342 #2C4213
analogous
#131542 #291342 #411342
triadic
#291342 #422913 #134229
tetradic
#291342 #421315 #2C4213 #134241
square
#291342 #421315 #2C4213 #134241
split-complementary
#291342 #424113 #154213
monochromatic
#0F0718 #0F0718 #291342 #472172 #642EA1

Accessibility & contrast

On white

16.59
#291342 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.27
#291342 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291342
16.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291342#FFFFFF#000000##FFFFFF
##2913421.0016.591.2716.59
#FFFFFF16.591.0021.001.00
#0000001.2721.001.0021.00
##FFFFFF16.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001E43
Deuteranopia (green-blind)
#041E41
Tritanopia (blue-blind)
#241D28
Achromatopsia (no color)
#1E1E1E

Design tokens & code

CSS
--color: #291342;
/* rgb */ color: rgb(41, 19, 66);
/* oklch */ color: oklch(24.7% 0.086 302.0);
Tailwind
colors: {
  custom: {
    50: '#655277',
    500: '#291342',
    950: '#000000',
  },
}
SCSS
$custom: #291342;
$custom-light: #655277;
$custom-dark: #000000;
JSON
{
  "hex": "#291342",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 66
  },
  "hsl": {
    "h": 268.085,
    "s": 55.294,
    "l": 16.667
  },
  "oklch": {
    "l": 0.24668,
    "c": 0.08574,
    "h": 302
  },
  "luminance": 0.01331
}

Semantic roles & 50–950 ramp

primary
#291342
secondary
#5B7B36
accent
#DF4999
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #291342

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

Preview Lab → · Contrast checker → · Palette generator →

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