#291174#291174

#291174 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.5% C 0.153 H 282.9°. Best body text is #FFFFFF at 14.72:1 contrast (WCAG AA passes).

Color values

HEX#291174
RGBrgb(41, 17, 116)
HSLhsl(255, 74%, 26%)
HSVhsv(255, 85%, 45%)
CMYKcmyk(64.7%, 85.3%, 0%, 54.5%)
CIE-LABlab(16.17, 39.03, -51.60)
CIE-LCHlch(16.17, 64.70, 307.10°)
OKLaboklab(29.51% 0.034 -0.1488)
OKLCHoklch(29.51% 0.153 282.9)
XYZxyz(4.2663, 2.1330, 16.7065)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291174 #5C7411
analogous
#112B74 #291174 #5A1174
triadic
#291174 #742911 #117429
tetradic
#291174 #74112B #5C7411 #11745A
square
#291174 #74112B #5C7411 #11745A
split-complementary
#291174 #745A11 #2B7411
monochromatic
#09041B #16093F #291174 #3C19A9 #4F21DE

Accessibility & contrast

On white

14.72
#291174 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291174 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291174
14.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291174#FFFFFF#000000##FFFFFF
##2911741.0014.721.4314.72
#FFFFFF14.721.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B77
Deuteranopia (green-blind)
#002572
Tritanopia (blue-blind)
#003044
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291174;
/* rgb */ color: rgb(41, 17, 116);
/* oklch */ color: oklch(29.5% 0.153 282.9);
Tailwind
colors: {
  custom: {
    50: '#6e549d',
    500: '#291174',
    950: '#000000',
  },
}
SCSS
$custom: #291174;
$custom-light: #6e549d;
$custom-dark: #000000;
JSON
{
  "hex": "#291174",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 116
  },
  "hsl": {
    "h": 254.545,
    "s": 74.436,
    "l": 26.078
  },
  "oklch": {
    "l": 0.29509,
    "c": 0.15268,
    "h": 282.9
  },
  "luminance": 0.02133
}

Semantic roles & 50–950 ramp

primary
#291174
secondary
#8FAB36
accent
#F137C4
background
#F7F5F9
surface
#EDE8F2
border
#C8C4CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291174

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

Preview Lab → · Contrast checker → · Palette generator →

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