#291E45#291E45

#291E45 is a dark, moderate violet. Relative luminance 0.018; OKLCH L 27.0% C 0.071 H 294.2°. Best body text is #FFFFFF at 15.37:1 contrast (WCAG AA passes).

Color values

HEX#291E45
RGBrgb(41, 30, 69)
HSLhsl(257, 39%, 19%)
HSVhsv(257, 57%, 27%)
CMYKcmyk(40.6%, 56.5%, 0%, 72.9%)
CIE-LABlab(14.57, 16.00, -22.78)
CIE-LCHlch(14.57, 27.84, 305.08°)
OKLaboklab(27.01% 0.0289 -0.0644)
OKLCHoklch(27.01% 0.071 294.2)
XYZxyz(2.4526, 1.8296, 5.8530)
Luminance0.0183 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291E45 #3A451E
analogous
#1E2745 #291E45 #3D1E45
triadic
#291E45 #45291E #1E4529
tetradic
#291E45 #451E27 #3A451E #1E453D
square
#291E45 #451E27 #3A451E #1E453D
split-complementary
#291E45 #453D1E #27451E
monochromatic
#0D0915 #100B1A #291E45 #423170 #5C439A

Accessibility & contrast

On white

15.37
#291E45 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.37
#291E45 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291E45
15.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291E45#FFFFFF#000000##FFFFFF
##291E451.0015.371.3715.37
#FFFFFF15.371.0021.001.00
#0000001.3721.001.0021.00
##FFFFFF15.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0F2546
Deuteranopia (green-blind)
#112444
Tritanopia (blue-blind)
#22262E
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #291e45;
/* rgb */ color: rgb(41, 30, 69);
/* oklch */ color: oklch(27.0% 0.071 294.2);
Tailwind
colors: {
  custom: {
    50: '#655a79',
    500: '#291e45',
    950: '#000000',
  },
}
SCSS
$custom: #291e45;
$custom-light: #655a79;
$custom-dark: #000000;
JSON
{
  "hex": "#291e45",
  "rgb": {
    "r": 41,
    "g": 30,
    "b": 69
  },
  "hsl": {
    "h": 256.923,
    "s": 39.394,
    "l": 19.412
  },
  "oklch": {
    "l": 0.27005,
    "c": 0.07058,
    "h": 294.2
  },
  "luminance": 0.0183
}

Semantic roles & 50–950 ramp

primary
#291E45
secondary
#6B7A45
accent
#CF59AE
background
#F6F5F7
surface
#EBE9ED
border
#C6C5C8
text
#050309
muted
#7A787B

Preview Lab

Preview with #291E45

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

Preview Lab → · Contrast checker → · Palette generator →

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