#291B58#291B58

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

Color values

HEX#291B58
RGBrgb(41, 27, 88)
HSLhsl(254, 53%, 23%)
HSVhsv(254, 69%, 35%)
CMYKcmyk(53.4%, 69.3%, 0%, 65.5%)
CIE-LABlab(15.27, 24.38, -34.62)
CIE-LCHlch(15.27, 42.35, 305.16°)
OKLaboklab(28% 0.0328 -0.0992)
OKLCHoklch(28% 0.104 288.3)
XYZxyz(3.0673, 1.9597, 9.4473)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B58 #4A581B
analogous
#1B2C58 #291B58 #471B58
triadic
#291B58 #58291B #1B5829
tetradic
#291B58 #581B2C #4A581B #1B5847
square
#291B58 #581B2C #4A581B #1B5847
split-complementary
#291B58 #58471B #2C581B
monochromatic
#0B0717 #130D29 #291B58 #3F2987 #5538B6

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##291B58#FFFFFF#000000##FFFFFF
##291B581.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)
#00285A
Deuteranopia (green-blind)
#002557
Tritanopia (blue-blind)
#192A36
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291b58;
/* rgb */ color: rgb(41, 27, 88);
/* oklch */ color: oklch(28.0% 0.104 288.3);
Tailwind
colors: {
  custom: {
    50: '#685888',
    500: '#291b58',
    950: '#000000',
  },
}
SCSS
$custom: #291b58;
$custom-light: #685888;
$custom-dark: #000000;
JSON
{
  "hex": "#291b58",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 88
  },
  "hsl": {
    "h": 253.77,
    "s": 53.043,
    "l": 22.549
  },
  "oklch": {
    "l": 0.28002,
    "c": 0.10447,
    "h": 288.3
  },
  "luminance": 0.0196
}

Semantic roles & 50–950 ramp

primary
#291B58
secondary
#7C8E41
accent
#DC4BBB
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291B58

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

Preview Lab → · Contrast checker → · Palette generator →

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