#291876#291876

#291876 is a dark, vivid violet. Relative luminance 0.024; OKLCH L 30.6% C 0.149 H 281.3°. Best body text is #FFFFFF at 14.13:1 contrast (WCAG AA passes).

Color values

HEX#291876
RGBrgb(41, 24, 118)
HSLhsl(251, 66%, 28%)
HSVhsv(251, 80%, 46%)
CMYKcmyk(65.3%, 79.7%, 0%, 53.7%)
CIE-LABlab(17.61, 36.15, -50.52)
CIE-LCHlch(17.61, 62.12, 305.58°)
OKLaboklab(30.58% 0.0291 -0.1457)
OKLCHoklch(30.58% 0.149 281.3)
XYZxyz(4.5101, 2.4324, 17.3679)
Luminance0.0243 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291876 #657618
analogous
#183676 #291876 #581876
triadic
#291876 #762918 #187629
tetradic
#291876 #761836 #657618 #187658
square
#291876 #761836 #657618 #187658
split-complementary
#291876 #765818 #367618
monochromatic
#090519 #170E43 #291876 #3B22A9 #5033D5

Accessibility & contrast

On white

14.13
#291876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.49
#291876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291876
14.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291876#FFFFFF#000000##FFFFFF
##2918761.0014.131.4914.13
#FFFFFF14.131.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E79
Deuteranopia (green-blind)
#002874
Tritanopia (blue-blind)
#003346
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291876;
/* rgb */ color: rgb(41, 24, 118);
/* oklch */ color: oklch(30.6% 0.149 281.3);
Tailwind
colors: {
  custom: {
    50: '#6e589f',
    500: '#291876',
    950: '#000000',
  },
}
SCSS
$custom: #291876;
$custom-light: #6e589f;
$custom-dark: #000000;
JSON
{
  "hex": "#291876",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 250.851,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.30577,
    "c": 0.14863,
    "h": 281.3
  },
  "luminance": 0.02433
}

Semantic roles & 50–950 ramp

primary
#291876
secondary
#97AB3F
accent
#E93FCA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291876

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

Preview Lab → · Contrast checker → · Palette generator →

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