#291042#291042

#291042 is a very dark, moderate violet. Relative luminance 0.012; OKLCH L 24.2% C 0.091 H 303.1°. Best body text is #FFFFFF at 16.84:1 contrast (WCAG AA passes).

Color values

HEX#291042
RGBrgb(41, 16, 66)
HSLhsl(270, 61%, 16%)
HSVhsv(270, 76%, 26%)
CMYKcmyk(37.9%, 75.8%, 0%, 74.1%)
CIE-LABlab(10.82, 24.34, -26.71)
CIE-LCHlch(10.82, 36.13, 312.34°)
OKLaboklab(24.18% 0.0495 -0.0759)
OKLCHoklch(24.18% 0.091 303.1)
XYZxyz(2.0829, 1.2353, 5.2819)
Luminance0.0123 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291042 #294210
analogous
#101042 #291042 #421042
triadic
#291042 #422910 #104229
tetradic
#291042 #421010 #294210 #104242
square
#291042 #421010 #294210 #104242
split-complementary
#291042 #424210 #104210
monochromatic
#0F0619 #0F0619 #291042 #481C73 #6628A5

Accessibility & contrast

On white

16.84
#291042 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.25
#291042 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291042
16.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291042#FFFFFF#000000##FFFFFF
##2910421.0016.841.2516.84
#FFFFFF16.841.0021.001.00
#0000001.2521.001.0021.00
##FFFFFF16.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#001D44
Deuteranopia (green-blind)
#011D41
Tritanopia (blue-blind)
#241B27
Achromatopsia (no color)
#1D1D1D

Design tokens & code

CSS
--color: #291042;
/* rgb */ color: rgb(41, 16, 66);
/* oklch */ color: oklch(24.2% 0.091 303.1);
Tailwind
colors: {
  custom: {
    50: '#655077',
    500: '#291042',
    950: '#000000',
  },
}
SCSS
$custom: #291042;
$custom-light: #655077;
$custom-dark: #000000;
JSON
{
  "hex": "#291042",
  "rgb": {
    "r": 41,
    "g": 16,
    "b": 66
  },
  "hsl": {
    "h": 270,
    "s": 60.976,
    "l": 16.078
  },
  "oklch": {
    "l": 0.24184,
    "c": 0.09064,
    "h": 303.1
  },
  "luminance": 0.01235
}

Semantic roles & 50–950 ramp

primary
#291042
secondary
#577C32
accent
#E44494
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #291042

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

Preview Lab → · Contrast checker → · Palette generator →

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