#291374#291374

#291374 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.7% C 0.151 H 282.6°. Best body text is #FFFFFF at 14.59:1 contrast (WCAG AA passes).

Color values

HEX#291374
RGBrgb(41, 19, 116)
HSLhsl(254, 72%, 26%)
HSVhsv(254, 84%, 45%)
CMYKcmyk(64.7%, 83.6%, 0%, 54.5%)
CIE-LABlab(16.49, 38.09, -51.07)
CIE-LCHlch(16.49, 63.71, 306.71°)
OKLaboklab(29.73% 0.0329 -0.1473)
OKLCHoklch(29.73% 0.151 282.6)
XYZxyz(4.2987, 2.1978, 16.7173)
Luminance0.0220 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291374 #5E7413
analogous
#132E74 #291374 #5A1374
triadic
#291374 #742913 #137429
tetradic
#291374 #74132E #5E7413 #13745A
square
#291374 #74132E #5E7413 #13745A
split-complementary
#291374 #745A13 #2E7413
monochromatic
#09041A #160A3F #291374 #3C1CA9 #4F26DB

Accessibility & contrast

On white

14.59
#291374 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#291374 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291374
14.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291374#FFFFFF#000000##FFFFFF
##2913741.0014.591.4414.59
#FFFFFF14.591.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.591.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291374;
/* rgb */ color: rgb(41, 19, 116);
/* oklch */ color: oklch(29.7% 0.151 282.6);
Tailwind
colors: {
  custom: {
    50: '#6e559d',
    500: '#291374',
    950: '#000000',
  },
}
SCSS
$custom: #291374;
$custom-light: #6e559d;
$custom-dark: #000000;
JSON
{
  "hex": "#291374",
  "rgb": {
    "r": 41,
    "g": 19,
    "b": 116
  },
  "hsl": {
    "h": 253.608,
    "s": 71.852,
    "l": 26.471
  },
  "oklch": {
    "l": 0.29732,
    "c": 0.15094,
    "h": 282.6
  },
  "luminance": 0.02198
}

Semantic roles & 50–950 ramp

primary
#291374
secondary
#91AA38
accent
#EF39C5
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291374

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

Preview Lab → · Contrast checker → · Palette generator →

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