#291B64#291B64

#291B64 is a dark, vivid violet. Relative luminance 0.022; OKLCH L 29.1% C 0.121 H 284.8°. Best body text is #FFFFFF at 14.63:1 contrast (WCAG AA passes).

Color values

HEX#291B64
RGBrgb(41, 27, 100)
HSLhsl(252, 57%, 25%)
HSVhsv(252, 73%, 39%)
CMYKcmyk(59%, 73%, 0%, 60.8%)
CIE-LABlab(16.38, 28.43, -40.81)
CIE-LCHlch(16.38, 49.74, 304.87°)
OKLaboklab(29.14% 0.031 -0.1174)
OKLCHoklch(29.14% 0.121 284.8)
XYZxyz(3.6059, 2.1752, 12.2840)
Luminance0.0217 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B64 #56641B
analogous
#1B3164 #291B64 #4E1B64
triadic
#291B64 #64291B #1B6429
tetradic
#291B64 #641B31 #56641B #1B644E
square
#291B64 #641B31 #56641B #1B644E
split-complementary
#291B64 #644E1B #31641B
monochromatic
#0A0718 #150E34 #291B64 #3D2894 #5135C4

Accessibility & contrast

On white

14.63
#291B64 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.44
#291B64 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291B64
14.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B64#FFFFFF#000000##FFFFFF
##291B641.0014.631.4414.63
#FFFFFF14.631.0021.001.00
#0000001.4421.001.0021.00
##FFFFFF14.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002B66
Deuteranopia (green-blind)
#002663
Tritanopia (blue-blind)
#0E2E3D
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #291b64;
/* rgb */ color: rgb(41, 27, 100);
/* oklch */ color: oklch(29.1% 0.121 284.8);
Tailwind
colors: {
  custom: {
    50: '#6a5891',
    500: '#291b64',
    950: '#000000',
  },
}
SCSS
$custom: #291b64;
$custom-light: #6a5891;
$custom-dark: #000000;
JSON
{
  "hex": "#291b64",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 100
  },
  "hsl": {
    "h": 251.507,
    "s": 57.48,
    "l": 24.902
  },
  "oklch": {
    "l": 0.29144,
    "c": 0.12139,
    "h": 284.8
  },
  "luminance": 0.02175
}

Semantic roles & 50–950 ramp

primary
#291B64
secondary
#899941
accent
#E147C3
background
#F6F5F9
surface
#EBE9F1
border
#C6C5CB
text
#07030D
muted
#7A787E

Preview Lab

Preview with #291B64

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

Preview Lab → · Contrast checker → · Palette generator →

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