#291B62#291B62

#291B62 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.9% C 0.119 H 285.3°. Best body text is #FFFFFF at 14.71:1 contrast (WCAG AA passes).

Color values

HEX#291B62
RGBrgb(41, 27, 98)
HSLhsl(252, 57%, 25%)
HSVhsv(252, 72%, 38%)
CMYKcmyk(58.2%, 72.4%, 0%, 61.6%)
CIE-LABlab(16.19, 27.76, -39.80)
CIE-LCHlch(16.19, 48.53, 304.89°)
OKLaboklab(28.95% 0.0313 -0.1144)
OKLCHoklch(28.95% 0.119 285.3)
XYZxyz(3.5103, 2.1369, 11.7804)
Luminance0.0214 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291B62 #54621B
analogous
#1B3162 #291B62 #4D1B62
triadic
#291B62 #62291B #1B6229
tetradic
#291B62 #621B31 #54621B #1B624D
square
#291B62 #621B31 #54621B #1B624D
split-complementary
#291B62 #624D1B #31621B
monochromatic
#0A0718 #150E32 #291B62 #3D2892 #5135C2

Accessibility & contrast

On white

14.71
#291B62 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291B62
14.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291B62#FFFFFF#000000##FFFFFF
##291B621.0014.711.4314.71
#FFFFFF14.711.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A64
Deuteranopia (green-blind)
#002661
Tritanopia (blue-blind)
#102D3C
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #291b62;
/* rgb */ color: rgb(41, 27, 98);
/* oklch */ color: oklch(28.9% 0.119 285.3);
Tailwind
colors: {
  custom: {
    50: '#6a588f',
    500: '#291b62',
    950: '#000000',
  },
}
SCSS
$custom: #291b62;
$custom-light: #6a588f;
$custom-dark: #000000;
JSON
{
  "hex": "#291b62",
  "rgb": {
    "r": 41,
    "g": 27,
    "b": 98
  },
  "hsl": {
    "h": 251.831,
    "s": 56.8,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28948,
    "c": 0.11862,
    "h": 285.3
  },
  "luminance": 0.02137
}

Semantic roles & 50–950 ramp

primary
#291B62
secondary
#879841
accent
#E048C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #291B62

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

Preview Lab → · Contrast checker → · Palette generator →

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