#291A4E#291A4E

#291A4E is a dark, moderate violet. Relative luminance 0.018; OKLCH L 26.9% C 0.091 H 292.5°. Best body text is #FFFFFF at 15.53:1 contrast (WCAG AA passes).

Color values

HEX#291A4E
RGBrgb(41, 26, 78)
HSLhsl(257, 50%, 20%)
HSVhsv(257, 67%, 31%)
CMYKcmyk(47.4%, 66.7%, 0%, 69.4%)
CIE-LABlab(14.17, 21.71, -29.61)
CIE-LCHlch(14.17, 36.72, 306.25°)
OKLaboklab(26.93% 0.0349 -0.0845)
OKLCHoklch(26.93% 0.091 292.5)
XYZxyz(2.6586, 1.7602, 7.4059)
Luminance0.0176 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291A4E #3F4E1A
analogous
#1A254E #291A4E #431A4E
triadic
#291A4E #4E291A #1A4E29
tetradic
#291A4E #4E1A25 #3F4E1A #1A4E43
square
#291A4E #4E1A25 #3F4E1A #1A4E43
split-complementary
#291A4E #4E431A #254E1A
monochromatic
#0C0817 #110B20 #291A4E #41297C #5939AA

Accessibility & contrast

On white

15.53
#291A4E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#291A4E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291A4E
15.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291A4E#FFFFFF#000000##FFFFFF
##291A4E1.0015.531.3515.53
#FFFFFF15.531.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#00234D
Tritanopia (blue-blind)
#1F2631
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291a4e;
/* rgb */ color: rgb(41, 26, 78);
/* oklch */ color: oklch(26.9% 0.091 292.5);
Tailwind
colors: {
  custom: {
    50: '#665780',
    500: '#291a4e',
    950: '#000000',
  },
}
SCSS
$custom: #291a4e;
$custom-light: #665780;
$custom-dark: #000000;
JSON
{
  "hex": "#291a4e",
  "rgb": {
    "r": 41,
    "g": 26,
    "b": 78
  },
  "hsl": {
    "h": 257.308,
    "s": 50,
    "l": 20.392
  },
  "oklch": {
    "l": 0.26934,
    "c": 0.09141,
    "h": 292.5
  },
  "luminance": 0.0176
}

Semantic roles & 50–950 ramp

primary
#291A4E
secondary
#708440
accent
#DA4EB1
background
#F6F5F7
surface
#EBE9EE
border
#C6C5C9
text
#06030A
muted
#7A787C

Preview Lab

Preview with #291A4E

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

Preview Lab → · Contrast checker → · Palette generator →

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