#291152#291152

#291152 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.8% C 0.110 H 294.2°. Best body text is #FFFFFF at 16.20:1 contrast (WCAG AA passes).

Color values

HEX#291152
RGBrgb(41, 17, 82)
HSLhsl(262, 66%, 19%)
HSVhsv(262, 79%, 32%)
CMYKcmyk(50%, 79.3%, 0%, 67.8%)
CIE-LABlab(12.49, 28.58, -35.09)
CIE-LCHlch(12.49, 45.26, 309.16°)
OKLaboklab(25.83% 0.0451 -0.1005)
OKLCHoklch(25.83% 0.11 294.2)
XYZxyz(2.6375, 1.4814, 8.1280)
Luminance0.0148 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291152 #3A5211
analogous
#111952 #291152 #4A1152
triadic
#291152 #522911 #115229
tetradic
#291152 #521119 #3A5211 #11524A
square
#291152 #521119 #3A5211 #11524A
split-complementary
#291152 #524A11 #195211
monochromatic
#0D0519 #10061F #291152 #421C85 #5C26B7

Accessibility & contrast

On white

16.20
#291152 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#291152 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291152
16.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291152#FFFFFF#000000##FFFFFF
##2911521.0016.201.3016.20
#FFFFFF16.201.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002154
Deuteranopia (green-blind)
#001F51
Tritanopia (blue-blind)
#1D2230
Achromatopsia (no color)
#202020

Design tokens & code

CSS
--color: #291152;
/* rgb */ color: rgb(41, 17, 82);
/* oklch */ color: oklch(25.8% 0.110 294.2);
Tailwind
colors: {
  custom: {
    50: '#685183',
    500: '#291152',
    950: '#000000',
  },
}
SCSS
$custom: #291152;
$custom-light: #685183;
$custom-dark: #000000;
JSON
{
  "hex": "#291152",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 82
  },
  "hsl": {
    "h": 262.154,
    "s": 65.657,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25834,
    "c": 0.11019,
    "h": 294.2
  },
  "luminance": 0.01482
}

Semantic roles & 50–950 ramp

primary
#291152
secondary
#6B8B34
accent
#E93FAA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #291152

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

Preview Lab → · Contrast checker → · Palette generator →

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