#291A42#291A42

#291A42 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.0% C 0.073 H 298.5°. Best body text is #FFFFFF at 15.90:1 contrast (WCAG AA passes).

Color values

HEX#291A42
RGBrgb(41, 26, 66)
HSLhsl(263, 43%, 18%)
HSVhsv(263, 61%, 26%)
CMYKcmyk(37.9%, 60.6%, 0%, 74.1%)
CIE-LABlab(13.25, 17.84, -22.79)
CIE-LCHlch(13.25, 28.94, 308.06°)
OKLaboklab(25.96% 0.0349 -0.0644)
OKLCHoklch(25.96% 0.073 298.5)
XYZxyz(2.2670, 1.6035, 5.3433)
Luminance0.0160 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291A42 #33421A
analogous
#1A1F42 #291A42 #3D1A42
triadic
#291A42 #42291A #1A4229
tetradic
#291A42 #421A1F #33421A #1A423D
square
#291A42 #421A1F #33421A #1A423D
split-complementary
#291A42 #423D1A #1F421A
monochromatic
#0E0916 #0E0916 #291A42 #442B6E #603D9A

Accessibility & contrast

On white

15.90
#291A42 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#291A42 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291A42
15.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291A42#FFFFFF#000000##FFFFFF
##291A421.0015.901.3215.90
#FFFFFF15.901.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0A2243
Deuteranopia (green-blind)
#0F2241
Tritanopia (blue-blind)
#24222B
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291a42;
/* rgb */ color: rgb(41, 26, 66);
/* oklch */ color: oklch(26.0% 0.073 298.5);
Tailwind
colors: {
  custom: {
    50: '#645776',
    500: '#291a42',
    950: '#000000',
  },
}
SCSS
$custom: #291a42;
$custom-light: #645776;
$custom-dark: #000000;
JSON
{
  "hex": "#291a42",
  "rgb": {
    "r": 41,
    "g": 26,
    "b": 66
  },
  "hsl": {
    "h": 262.5,
    "s": 43.478,
    "l": 18.039
  },
  "oklch": {
    "l": 0.2596,
    "c": 0.07328,
    "h": 298.5
  },
  "luminance": 0.01604
}

Semantic roles & 50–950 ramp

primary
#291A42
secondary
#637840
accent
#D355A4
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050308
muted
#7A787B

Preview Lab

Preview with #291A42

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

Preview Lab → · Contrast checker → · Palette generator →

#291A42 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva