#291B53#291B53

#291B53 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.6% C 0.097 H 290.0°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#291B53
RGBrgb(41, 27, 83)
HSLhsl(255, 51%, 22%)
HSVhsv(255, 67%, 33%)
CMYKcmyk(50.6%, 67.5%, 0%, 67.5%)
CIE-LABlab(14.84, 22.71, -31.94)
CIE-LCHlch(14.84, 39.19, 305.41°)
OKLaboklab(27.55% 0.0333 -0.0913)
OKLCHoklch(27.55% 0.097 290)
XYZxyz(2.8673, 1.8797, 8.3937)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B53 #45531B
analogous
#1B2953 #291B53 #451B53
triadic
#291B53 #53291B #1B5329
tetradic
#291B53 #531B29 #45531B #1B5345
square
#291B53 #531B29 #45531B #1B5345
split-complementary
#291B53 #53451B #29531B
monochromatic
#0B0817 #120C25 #291B53 #402A81 #5739AF

Accessibility & contrast

On white

15.26
#291B53 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#291B53 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B53
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B53#FFFFFF#000000##FFFFFF
##291B531.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002655
Deuteranopia (green-blind)
#002452
Tritanopia (blue-blind)
#1C2834
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291b53;
/* rgb */ color: rgb(41, 27, 83);
/* oklch */ color: oklch(27.6% 0.097 290.0);
Tailwind
colors: {
  custom: {
    50: '#675884',
    500: '#291b53',
    950: '#000000',
  },
}
SCSS
$custom: #291b53;
$custom-light: #675884;
$custom-dark: #000000;
JSON
{
  "hex": "#291b53",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 83
  },
  "hsl": {
    "h": 255,
    "s": 50.909,
    "l": 21.569
  },
  "oklch": {
    "l": 0.27553,
    "c": 0.09719,
    "h": 290
  },
  "luminance": 0.0188
}

Semantic roles & 50–950 ramp

primary
#291B53
secondary
#778941
accent
#DA4DB7
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291B53

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

Preview Lab → · Contrast checker → · Palette generator →

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