#291971#291971

#291971 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.2% C 0.141 H 282.2°. Best body text is #FFFFFF at 14.27:1 contrast (WCAG AA passes).

Color values

HEX#291971
RGBrgb(41, 25, 113)
HSLhsl(251, 64%, 27%)
HSVhsv(251, 78%, 44%)
CMYKcmyk(63.7%, 77.9%, 0%, 55.7%)
CIE-LABlab(17.27, 33.96, -47.86)
CIE-LCHlch(17.27, 58.68, 305.36°)
OKLaboklab(30.17% 0.0298 -0.138)
OKLCHoklch(30.17% 0.141 282.2)
XYZxyz(4.2418, 2.3586, 15.8513)
Luminance0.0236 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291971 #617119
analogous
#193571 #291971 #551971
triadic
#291971 #712919 #197129
tetradic
#291971 #711935 #617119 #197155
square
#291971 #711935 #617119 #197155
split-complementary
#291971 #715519 #357119
monochromatic
#090619 #170E3F #291971 #3B24A3 #5033D2

Accessibility & contrast

On white

14.27
#291971 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.47
#291971 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291971
14.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291971#FFFFFF#000000##FFFFFF
##2919711.0014.271.4714.27
#FFFFFF14.271.0021.001.00
#0000001.4721.001.0021.00
##FFFFFF14.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D74
Deuteranopia (green-blind)
#00276F
Tritanopia (blue-blind)
#003244
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #291971;
/* rgb */ color: rgb(41, 25, 113);
/* oklch */ color: oklch(30.2% 0.141 282.2);
Tailwind
colors: {
  custom: {
    50: '#6d589b',
    500: '#291971',
    950: '#000000',
  },
}
SCSS
$custom: #291971;
$custom-light: #6d589b;
$custom-dark: #000000;
JSON
{
  "hex": "#291971",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 113
  },
  "hsl": {
    "h": 250.909,
    "s": 63.768,
    "l": 27.059
  },
  "oklch": {
    "l": 0.30174,
    "c": 0.14117,
    "h": 282.2
  },
  "luminance": 0.02359
}

Semantic roles & 50–950 ramp

primary
#291971
secondary
#94A640
accent
#E741C9
background
#F6F5F9
surface
#ECE9F2
border
#C7C5CC
text
#08030E
muted
#7A787E

Preview Lab

Preview with #291971

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

Preview Lab → · Contrast checker → · Palette generator →

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