#291671#291671

#291671 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.8% C 0.144 H 282.8°. Best body text is #FFFFFF at 14.51:1 contrast (WCAG AA passes).

Color values

HEX#291671
RGBrgb(41, 22, 113)
HSLhsl(253, 67%, 26%)
HSVhsv(253, 81%, 44%)
CMYKcmyk(63.7%, 80.5%, 0%, 55.7%)
CIE-LABlab(16.69, 35.62, -48.81)
CIE-LCHlch(16.69, 60.42, 306.12°)
OKLaboklab(29.77% 0.0319 -0.1407)
OKLCHoklch(29.77% 0.144 282.8)
XYZxyz(4.1811, 2.2372, 15.8311)
Luminance0.0224 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291671 #5E7116
analogous
#163171 #291671 #571671
triadic
#291671 #712916 #167129
tetradic
#291671 #711631 #5E7116 #167157
square
#291671 #711631 #5E7116 #167157
split-complementary
#291671 #715716 #317116
monochromatic
#09051A #160C3E #291671 #3C20A4 #4F2CD6

Accessibility & contrast

On white

14.51
#291671 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#291671 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291671
14.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291671#FFFFFF#000000##FFFFFF
##2916711.0014.511.4514.51
#FFFFFF14.511.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C74
Deuteranopia (green-blind)
#00266F
Tritanopia (blue-blind)
#003043
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291671;
/* rgb */ color: rgb(41, 22, 113);
/* oklch */ color: oklch(29.8% 0.144 282.8);
Tailwind
colors: {
  custom: {
    50: '#6d569b',
    500: '#291671',
    950: '#000000',
  },
}
SCSS
$custom: #291671;
$custom-light: #6d569b;
$custom-dark: #000000;
JSON
{
  "hex": "#291671",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 113
  },
  "hsl": {
    "h": 252.527,
    "s": 67.407,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29766,
    "c": 0.14433,
    "h": 282.8
  },
  "luminance": 0.02237
}

Semantic roles & 50–950 ramp

primary
#291671
secondary
#91A73C
accent
#EA3EC6
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291671

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

Preview Lab → · Contrast checker → · Palette generator →

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