#291A71#291A71

#291A71 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.3% C 0.140 H 282.0°. Best body text is #FFFFFF at 14.19:1 contrast (WCAG AA passes).

Color values

HEX#291A71
RGBrgb(41, 26, 113)
HSLhsl(250, 63%, 27%)
HSVhsv(250, 77%, 44%)
CMYKcmyk(63.7%, 77%, 0%, 55.7%)
CIE-LABlab(17.47, 33.39, -47.52)
CIE-LCHlch(17.47, 58.08, 305.09°)
OKLaboklab(30.32% 0.029 -0.137)
OKLCHoklch(30.32% 0.14 282)
XYZxyz(4.2635, 2.4022, 15.8586)
Luminance0.0240 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291A71 #62711A
analogous
#1A3671 #291A71 #551A71
triadic
#291A71 #71291A #1A7129
tetradic
#291A71 #711A36 #62711A #1A7155
square
#291A71 #711A36 #62711A #1A7155
split-complementary
#291A71 #71551A #36711A
monochromatic
#090619 #170F3F #291A71 #3B25A3 #5035D0

Accessibility & contrast

On white

14.19
#291A71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291A71 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291A71
14.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291A71#FFFFFF#000000##FFFFFF
##291A711.0014.191.4814.19
#FFFFFF14.191.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E74
Deuteranopia (green-blind)
#00286F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291a71;
/* rgb */ color: rgb(41, 26, 113);
/* oklch */ color: oklch(30.3% 0.140 282.0);
Tailwind
colors: {
  custom: {
    50: '#6d589b',
    500: '#291a71',
    950: '#000000',
  },
}
SCSS
$custom: #291a71;
$custom-light: #6d589b;
$custom-dark: #000000;
JSON
{
  "hex": "#291a71",
  "rgb": {
    "r": 41,
    "g": 26,
    "b": 113
  },
  "hsl": {
    "h": 250.345,
    "s": 62.59,
    "l": 27.255
  },
  "oklch": {
    "l": 0.30318,
    "c": 0.14006,
    "h": 282
  },
  "luminance": 0.02402
}

Semantic roles & 50–950 ramp

primary
#291A71
secondary
#95A641
accent
#E642C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291A71

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

Preview Lab → · Contrast checker → · Palette generator →

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