#291672#291672

#291672 is a dark, vivid violet. Relative luminance 0.023; OKLCH L 29.9% C 0.146 H 282.6°. Best body text is #FFFFFF at 14.46:1 contrast (WCAG AA passes).

Color values

HEX#291672
RGBrgb(41, 22, 114)
HSLhsl(252, 68%, 27%)
HSVhsv(252, 81%, 45%)
CMYKcmyk(64%, 80.7%, 0%, 55.3%)
CIE-LABlab(16.80, 35.94, -49.28)
CIE-LCHlch(16.80, 60.99, 306.10°)
OKLaboklab(29.88% 0.0316 -0.1421)
OKLCHoklch(29.88% 0.146 282.6)
XYZxyz(4.2377, 2.2598, 16.1292)
Luminance0.0226 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291672 #5F7216
analogous
#163172 #291672 #571672
triadic
#291672 #722916 #167229
tetradic
#291672 #721631 #5F7216 #167257
square
#291672 #721631 #5F7216 #167257
split-complementary
#291672 #725716 #317216
monochromatic
#09051A #170C3F #291672 #3B20A5 #4F2CD6

Accessibility & contrast

On white

14.46
#291672 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291672
14.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291672#FFFFFF#000000##FFFFFF
##2916721.0014.461.4514.46
#FFFFFF14.461.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C75
Deuteranopia (green-blind)
#002670
Tritanopia (blue-blind)
#003143
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291672;
/* rgb */ color: rgb(41, 22, 114);
/* oklch */ color: oklch(29.9% 0.146 282.6);
Tailwind
colors: {
  custom: {
    50: '#6d569c',
    500: '#291672',
    950: '#000000',
  },
}
SCSS
$custom: #291672;
$custom-light: #6d569c;
$custom-dark: #000000;
JSON
{
  "hex": "#291672",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 114
  },
  "hsl": {
    "h": 252.391,
    "s": 67.647,
    "l": 26.667
  },
  "oklch": {
    "l": 0.29876,
    "c": 0.14559,
    "h": 282.6
  },
  "luminance": 0.0226
}

Semantic roles & 50–950 ramp

primary
#291672
secondary
#92A83C
accent
#EB3DC7
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291672

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

Preview Lab → · Contrast checker → · Palette generator →

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