#291874#291874

#291874 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.4% C 0.146 H 281.7°. Best body text is #FFFFFF at 14.22:1 contrast (WCAG AA passes).

Color values

HEX#291874
RGBrgb(41, 24, 116)
HSLhsl(251, 66%, 27%)
HSVhsv(251, 79%, 45%)
CMYKcmyk(64.7%, 79.3%, 0%, 54.5%)
CIE-LABlab(17.39, 35.50, -49.59)
CIE-LCHlch(17.39, 60.99, 305.60°)
OKLaboklab(30.36% 0.0297 -0.143)
OKLCHoklch(30.36% 0.146 281.7)
XYZxyz(4.3925, 2.3853, 16.7486)
Luminance0.0239 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291874 #637418
analogous
#183574 #291874 #571874
triadic
#291874 #742918 #187429
tetradic
#291874 #741835 #637418 #187457
square
#291874 #741835 #637418 #187457
split-complementary
#291874 #745718 #357418
monochromatic
#090519 #170E41 #291874 #3B22A7 #5032D5

Accessibility & contrast

On white

14.22
#291874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#291874 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291874
14.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291874#FFFFFF#000000##FFFFFF
##2918741.0014.221.4814.22
#FFFFFF14.221.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E77
Deuteranopia (green-blind)
#002772
Tritanopia (blue-blind)
#003345
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291874;
/* rgb */ color: rgb(41, 24, 116);
/* oklch */ color: oklch(30.4% 0.146 281.7);
Tailwind
colors: {
  custom: {
    50: '#6e579d',
    500: '#291874',
    950: '#000000',
  },
}
SCSS
$custom: #291874;
$custom-light: #6e579d;
$custom-dark: #000000;
JSON
{
  "hex": "#291874",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 251.087,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.30359,
    "c": 0.14609,
    "h": 281.7
  },
  "luminance": 0.02386
}

Semantic roles & 50–950 ramp

primary
#291874
secondary
#96A93F
accent
#E93FC9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030E
muted
#7B787E

Preview Lab

Preview with #291874

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

Preview Lab → · Contrast checker → · Palette generator →

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