#291A63#291A63

#291A63 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.121 H 285.4°. Best body text is #FFFFFF at 14.77:1 contrast (WCAG AA passes).

Color values

HEX#291A63
RGBrgb(41, 26, 99)
HSLhsl(252, 58%, 25%)
HSVhsv(252, 74%, 39%)
CMYKcmyk(58.6%, 73.7%, 0%, 61.2%)
CIE-LABlab(16.06, 28.72, -40.68)
CIE-LCHlch(16.06, 49.79, 305.22°)
OKLaboklab(28.88% 0.0321 -0.117)
OKLCHoklch(28.88% 0.121 285.4)
XYZxyz(3.5353, 2.1109, 12.0231)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291A63 #54631A
analogous
#1A3063 #291A63 #4E1A63
triadic
#291A63 #63291A #1A6329
tetradic
#291A63 #631A30 #54631A #1A634E
square
#291A63 #631A30 #54631A #1A634E
split-complementary
#291A63 #634E1A #30631A
monochromatic
#0A0618 #150D33 #291A63 #3D2793 #5133C4

Accessibility & contrast

On white

14.77
#291A63 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#291A63 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291A63
14.77:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291A63#FFFFFF#000000##FFFFFF
##291A631.0014.771.4214.77
#FFFFFF14.771.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.771.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #291a63;
/* rgb */ color: rgb(41, 26, 99);
/* oklch */ color: oklch(28.9% 0.121 285.4);
Tailwind
colors: {
  custom: {
    50: '#6a5890',
    500: '#291a63',
    950: '#000000',
  },
}
SCSS
$custom: #291a63;
$custom-light: #6a5890;
$custom-dark: #000000;
JSON
{
  "hex": "#291a63",
  "rgb": {
    "r": 41,
    "g": 26,
    "b": 99
  },
  "hsl": {
    "h": 252.329,
    "s": 58.4,
    "l": 24.51
  },
  "oklch": {
    "l": 0.28883,
    "c": 0.12131,
    "h": 285.4
  },
  "luminance": 0.02111
}

Semantic roles & 50–950 ramp

primary
#291A63
secondary
#879940
accent
#E246C2
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030D
muted
#7A787D

Preview Lab

Preview with #291A63

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

Preview Lab → · Contrast checker → · Palette generator →

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