#291156#291156

#291156 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.2% C 0.115 H 292.4°. Best body text is #FFFFFF at 16.05:1 contrast (WCAG AA passes).

Color values

HEX#291156
RGBrgb(41, 17, 86)
HSLhsl(261, 67%, 20%)
HSVhsv(261, 80%, 34%)
CMYKcmyk(52.3%, 80.2%, 0%, 66.3%)
CIE-LABlab(12.89, 29.81, -37.17)
CIE-LCHlch(12.89, 47.64, 308.73°)
OKLaboklab(26.24% 0.044 -0.1066)
OKLCHoklch(26.24% 0.115 292.4)
XYZxyz(2.7941, 1.5441, 8.9531)
Luminance0.0154 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291156 #3E5611
analogous
#111B56 #291156 #4C1156
triadic
#291156 #562911 #115629
tetradic
#291156 #56111B #3E5611 #11564C
square
#291156 #56111B #3E5611 #11564C
split-complementary
#291156 #564C11 #1B5611
monochromatic
#0C051A #110723 #291156 #411B89 #5A25BC

Accessibility & contrast

On white

16.05
#291156 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291156
16.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291156#FFFFFF#000000##FFFFFF
##2911561.0016.051.3116.05
#FFFFFF16.051.0021.001.00
#0000001.3121.001.0021.00
##FFFFFF16.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002258
Deuteranopia (green-blind)
#002055
Tritanopia (blue-blind)
#1B2332
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #291156;
/* rgb */ color: rgb(41, 17, 86);
/* oklch */ color: oklch(26.2% 0.115 292.4);
Tailwind
colors: {
  custom: {
    50: '#685286',
    500: '#291156',
    950: '#000000',
  },
}
SCSS
$custom: #291156;
$custom-light: #685286;
$custom-dark: #000000;
JSON
{
  "hex": "#291156",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 86
  },
  "hsl": {
    "h": 260.87,
    "s": 66.99,
    "l": 20.196
  },
  "oklch": {
    "l": 0.26236,
    "c": 0.11536,
    "h": 292.4
  },
  "luminance": 0.01544
}

Semantic roles & 50–950 ramp

primary
#291156
secondary
#6F8F34
accent
#EA3EAE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#07020B
muted
#7A787C

Preview Lab

Preview with #291156

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

Preview Lab → · Contrast checker → · Palette generator →

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