#291877#291877

#291877 is a dark, vivid violet. Relative luminance 0.025; OKLCH L 30.7% C 0.150 H 281.1°. Best body text is #FFFFFF at 14.08:1 contrast (WCAG AA passes).

Color values

HEX#291877
RGBrgb(41, 24, 119)
HSLhsl(251, 66%, 28%)
HSVhsv(251, 80%, 47%)
CMYKcmyk(65.5%, 79.8%, 0%, 53.3%)
CIE-LABlab(17.72, 36.47, -50.98)
CIE-LCHlch(17.72, 62.68, 305.58°)
OKLaboklab(30.69% 0.0288 -0.1471)
OKLCHoklch(30.69% 0.15 281.1)
XYZxyz(4.5698, 2.4563, 17.6825)
Luminance0.0246 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291877 #667718
analogous
#183677 #291877 #581877
triadic
#291877 #772918 #187729
tetradic
#291877 #771836 #667718 #187758
square
#291877 #771836 #667718 #187758
split-complementary
#291877 #775818 #367718
monochromatic
#090519 #170E44 #291877 #3B22AA #5133D6

Accessibility & contrast

On white

14.08
#291877 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291877
14.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291877#FFFFFF#000000##FFFFFF
##2918771.0014.081.4914.08
#FFFFFF14.081.0021.001.00
#0000001.4921.001.0021.00
##FFFFFF14.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F7A
Deuteranopia (green-blind)
#002875
Tritanopia (blue-blind)
#003447
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #291877;
/* rgb */ color: rgb(41, 24, 119);
/* oklch */ color: oklch(30.7% 0.150 281.1);
Tailwind
colors: {
  custom: {
    50: '#6e589f',
    500: '#291877',
    950: '#000000',
  },
}
SCSS
$custom: #291877;
$custom-light: #6e589f;
$custom-dark: #000000;
JSON
{
  "hex": "#291877",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 119
  },
  "hsl": {
    "h": 250.737,
    "s": 66.434,
    "l": 28.039
  },
  "oklch": {
    "l": 0.30687,
    "c": 0.1499,
    "h": 281.1
  },
  "luminance": 0.02457
}

Semantic roles & 50–950 ramp

primary
#291877
secondary
#98AC3F
accent
#E93ECB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08030F
muted
#7B787E

Preview Lab

Preview with #291877

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

Preview Lab → · Contrast checker → · Palette generator →

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