#291B57#291B57

#291B57 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 27.9% C 0.103 H 288.6°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#291B57
RGBrgb(41, 27, 87)
HSLhsl(254, 53%, 22%)
HSVhsv(254, 69%, 34%)
CMYKcmyk(52.9%, 69%, 0%, 65.9%)
CIE-LABlab(15.19, 24.05, -34.09)
CIE-LCHlch(15.19, 41.72, 305.20°)
OKLaboklab(27.91% 0.0329 -0.0976)
OKLCHoklch(27.91% 0.103 288.6)
XYZxyz(3.0262, 1.9433, 9.2306)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B57 #49571B
analogous
#1B2B57 #291B57 #471B57
triadic
#291B57 #57291B #1B5729
tetradic
#291B57 #571B2B #49571B #1B5747
square
#291B57 #571B2B #49571B #1B5747
split-complementary
#291B57 #57471B #2B571B
monochromatic
#0B0717 #130D28 #291B57 #3F2986 #5538B4

Accessibility & contrast

On white

15.12
#291B57 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291B57
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B57#FFFFFF#000000##FFFFFF
##291B571.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002759
Deuteranopia (green-blind)
#002556
Tritanopia (blue-blind)
#192936
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #291b57;
/* rgb */ color: rgb(41, 27, 87);
/* oklch */ color: oklch(27.9% 0.103 288.6);
Tailwind
colors: {
  custom: {
    50: '#685887',
    500: '#291b57',
    950: '#000000',
  },
}
SCSS
$custom: #291b57;
$custom-light: #685887;
$custom-dark: #000000;
JSON
{
  "hex": "#291b57",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 87
  },
  "hsl": {
    "h": 254,
    "s": 52.632,
    "l": 22.353
  },
  "oklch": {
    "l": 0.27911,
    "c": 0.10303,
    "h": 288.6
  },
  "luminance": 0.01943
}

Semantic roles & 50–950 ramp

primary
#291B57
secondary
#7B8D41
accent
#DC4CBA
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291B57

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

Preview Lab → · Contrast checker → · Palette generator →

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