#291242#291242

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

Color values

HEX#291242
RGBrgb(41, 18, 66)
HSLhsl(269, 57%, 16%)
HSVhsv(269, 73%, 26%)
CMYKcmyk(37.9%, 72.7%, 0%, 74.1%)
CIE-LABlab(11.26, 23.12, -25.99)
CIE-LCHlch(11.26, 34.79, 311.65°)
OKLaboklab(24.5% 0.0468 -0.0738)
OKLCHoklch(24.5% 0.087 302.4)
XYZxyz(2.1139, 1.2974, 5.2923)
Luminance0.0130 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291242 #2B4212
analogous
#121342 #291242 #411242
triadic
#291242 #422912 #124229
tetradic
#291242 #421213 #2B4212 #124241
square
#291242 #421213 #2B4212 #124241
split-complementary
#291242 #424112 #134212
monochromatic
#0F0718 #0F0718 #291242 #471F72 #652CA2

Accessibility & contrast

On white

16.67
#291242 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291242
16.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291242#FFFFFF#000000##FFFFFF
##2912421.0016.671.2616.67
#FFFFFF16.671.0021.001.00
#0000001.2621.001.0021.00
##FFFFFF16.671.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291242;
/* rgb */ color: rgb(41, 18, 66);
/* oklch */ color: oklch(24.5% 0.087 302.4);
Tailwind
colors: {
  custom: {
    50: '#655177',
    500: '#291242',
    950: '#000000',
  },
}
SCSS
$custom: #291242;
$custom-light: #655177;
$custom-dark: #000000;
JSON
{
  "hex": "#291242",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 66
  },
  "hsl": {
    "h": 268.75,
    "s": 57.143,
    "l": 16.471
  },
  "oklch": {
    "l": 0.24501,
    "c": 0.08741,
    "h": 302.4
  },
  "luminance": 0.01297
}

Semantic roles & 50–950 ramp

primary
#291242
secondary
#597B35
accent
#E04797
background
#F6F4F7
surface
#EBE7ED
border
#C6C3C8
text
#060208
muted
#7A787B

Preview Lab

Preview with #291242

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

Preview Lab → · Contrast checker → · Palette generator →

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