#291B63#291B63

#291B63 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.0% C 0.120 H 285.0°. Best body text is #FFFFFF at 14.67:1 contrast (WCAG AA passes).

Color values

HEX#291B63
RGBrgb(41, 27, 99)
HSLhsl(252, 57%, 25%)
HSVhsv(252, 73%, 39%)
CMYKcmyk(58.6%, 72.7%, 0%, 61.2%)
CIE-LABlab(16.29, 28.10, -40.31)
CIE-LCHlch(16.29, 49.13, 304.88°)
OKLaboklab(29.05% 0.0312 -0.1159)
OKLCHoklch(29.05% 0.12 285)
XYZxyz(3.5578, 2.1559, 12.0306)
Luminance0.0216 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B63 #55631B
analogous
#1B3163 #291B63 #4D1B63
triadic
#291B63 #63291B #1B6329
tetradic
#291B63 #631B31 #55631B #1B634D
square
#291B63 #631B31 #55631B #1B634D
split-complementary
#291B63 #634D1B #31631B
monochromatic
#0A0718 #150E33 #291B63 #3D2893 #5135C3

Accessibility & contrast

On white

14.67
#291B63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#291B63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B63
14.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B63#FFFFFF#000000##FFFFFF
##291B631.0014.671.4314.67
#FFFFFF14.671.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A65
Deuteranopia (green-blind)
#002662
Tritanopia (blue-blind)
#0F2E3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291b63;
/* rgb */ color: rgb(41, 27, 99);
/* oklch */ color: oklch(29.0% 0.120 285.0);
Tailwind
colors: {
  custom: {
    50: '#6a5890',
    500: '#291b63',
    950: '#000000',
  },
}
SCSS
$custom: #291b63;
$custom-light: #6a5890;
$custom-dark: #000000;
JSON
{
  "hex": "#291b63",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 99
  },
  "hsl": {
    "h": 251.667,
    "s": 57.143,
    "l": 24.706
  },
  "oklch": {
    "l": 0.29046,
    "c": 0.12001,
    "h": 285
  },
  "luminance": 0.02156
}

Semantic roles & 50–950 ramp

primary
#291B63
secondary
#889841
accent
#E047C3
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #291B63

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

Preview Lab → · Contrast checker → · Palette generator →

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