#291251#291251

#291251 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 25.9% C 0.108 H 294.3°. Best body text is #FFFFFF at 16.16:1 contrast (WCAG AA passes).

Color values

HEX#291251
RGBrgb(41, 18, 81)
HSLhsl(262, 64%, 19%)
HSVhsv(262, 78%, 32%)
CMYKcmyk(49.4%, 77.8%, 0%, 68.2%)
CIE-LABlab(12.60, 27.70, -34.23)
CIE-LCHlch(12.60, 44.04, 308.98°)
OKLaboklab(25.88% 0.0443 -0.098)
OKLCHoklch(25.88% 0.108 294.3)
XYZxyz(2.6156, 1.4980, 7.9343)
Luminance0.0150 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291251 #3A5112
analogous
#121B51 #291251 #491251
triadic
#291251 #512912 #125129
tetradic
#291251 #51121B #3A5112 #125149
square
#291251 #51121B #3A5112 #125149
split-complementary
#291251 #514912 #1B5112
monochromatic
#0D0619 #10071F #291251 #421D83 #5C28B5

Accessibility & contrast

On white

16.16
#291251 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291251
16.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291251#FFFFFF#000000##FFFFFF
##2912511.0016.161.3016.16
#FFFFFF16.161.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002153
Deuteranopia (green-blind)
#002050
Tritanopia (blue-blind)
#1E2230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #291251;
/* rgb */ color: rgb(41, 18, 81);
/* oklch */ color: oklch(25.9% 0.108 294.3);
Tailwind
colors: {
  custom: {
    50: '#675282',
    500: '#291251',
    950: '#000000',
  },
}
SCSS
$custom: #291251;
$custom-light: #675282;
$custom-dark: #000000;
JSON
{
  "hex": "#291251",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 81
  },
  "hsl": {
    "h": 261.905,
    "s": 63.636,
    "l": 19.412
  },
  "oklch": {
    "l": 0.25879,
    "c": 0.10757,
    "h": 294.3
  },
  "luminance": 0.01498
}

Semantic roles & 50–950 ramp

primary
#291251
secondary
#6B8A35
accent
#E741AA
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020A
muted
#7A787C

Preview Lab

Preview with #291251

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

Preview Lab → · Contrast checker → · Palette generator →

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