#291D52#291D52

#291D52 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 27.8% C 0.093 H 289.4°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#291D52
RGBrgb(41, 29, 82)
HSLhsl(254, 48%, 22%)
HSVhsv(254, 65%, 32%)
CMYKcmyk(50%, 64.6%, 0%, 67.8%)
CIE-LABlab(15.27, 21.02, -30.57)
CIE-LCHlch(15.27, 37.10, 304.52°)
OKLaboklab(27.84% 0.0308 -0.0873)
OKLCHoklch(27.84% 0.093 289.4)
XYZxyz(2.8764, 1.9592, 8.2076)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291D52 #46521D
analogous
#1D2C52 #291D52 #441D52
triadic
#291D52 #52291D #1D5229
tetradic
#291D52 #521D2C #46521D #1D5244
square
#291D52 #521D2C #46521D #1D5244
split-complementary
#291D52 #52441D #2C521D
monochromatic
#0B0817 #120D25 #291D52 #402D7F #563DAC

Accessibility & contrast

On white

15.09
#291D52 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#291D52 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291D52
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291D52#FFFFFF#000000##FFFFFF
##291D521.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002754
Deuteranopia (green-blind)
#002551
Tritanopia (blue-blind)
#1C2934
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291d52;
/* rgb */ color: rgb(41, 29, 82);
/* oklch */ color: oklch(27.8% 0.093 289.4);
Tailwind
colors: {
  custom: {
    50: '#675983',
    500: '#291d52',
    950: '#000000',
  },
}
SCSS
$custom: #291d52;
$custom-light: #675983;
$custom-dark: #000000;
JSON
{
  "hex": "#291d52",
  "rgb": {
    "r": 41,
    "g": 29,
    "b": 82
  },
  "hsl": {
    "h": 253.585,
    "s": 47.748,
    "l": 21.765
  },
  "oklch": {
    "l": 0.2784,
    "c": 0.09253,
    "h": 289.4
  },
  "luminance": 0.01959
}

Semantic roles & 50–950 ramp

primary
#291D52
secondary
#788744
accent
#D750B9
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030A
muted
#7A787C

Preview Lab

Preview with #291D52

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

Preview Lab → · Contrast checker → · Palette generator →

#291D52 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva