#291157#291157

#291157 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.117 H 292.0°. Best body text is #FFFFFF at 16.01:1 contrast (WCAG AA passes).

Color values

HEX#291157
RGBrgb(41, 17, 87)
HSLhsl(261, 67%, 20%)
HSVhsv(261, 80%, 34%)
CMYKcmyk(52.9%, 80.5%, 0%, 65.9%)
CIE-LABlab(12.99, 30.12, -37.68)
CIE-LCHlch(12.99, 48.24, 308.63°)
OKLaboklab(26.34% 0.0438 -0.1081)
OKLCHoklch(26.34% 0.117 292)
XYZxyz(2.8347, 1.5603, 9.1668)
Luminance0.0156 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291157 #3F5711
analogous
#111C57 #291157 #4C1157
triadic
#291157 #572911 #115729
tetradic
#291157 #57111C #3F5711 #11574C
square
#291157 #57111C #3F5711 #11574C
split-complementary
#291157 #574C11 #1C5711
monochromatic
#0C051A #110724 #291157 #411B8A #5925BD

Accessibility & contrast

On white

16.01
#291157 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.31
#291157 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291157
16.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291157#FFFFFF#000000##FFFFFF
##2911571.0016.011.3116.01
#FFFFFF16.011.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002359
Deuteranopia (green-blind)
#002056
Tritanopia (blue-blind)
#1A2433
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291157;
/* rgb */ color: rgb(41, 17, 87);
/* oklch */ color: oklch(26.3% 0.117 292.0);
Tailwind
colors: {
  custom: {
    50: '#695287',
    500: '#291157',
    950: '#000000',
  },
}
SCSS
$custom: #291157;
$custom-light: #695287;
$custom-dark: #000000;
JSON
{
  "hex": "#291157",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 87
  },
  "hsl": {
    "h": 260.571,
    "s": 67.308,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26338,
    "c": 0.11665,
    "h": 292
  },
  "luminance": 0.0156
}

Semantic roles & 50–950 ramp

primary
#291157
secondary
#709034
accent
#EA3EAF
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291157

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

Preview Lab → · Contrast checker → · Palette generator →

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