#291558#291558

#291558 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 27.0% C 0.113 H 290.5°. Best body text is #FFFFFF at 15.64:1 contrast (WCAG AA passes).

Color values

HEX#291558
RGBrgb(41, 21, 88)
HSLhsl(258, 61%, 21%)
HSVhsv(258, 76%, 35%)
CMYKcmyk(53.4%, 76.1%, 0%, 65.5%)
CIE-LABlab(13.90, 28.15, -36.86)
CIE-LCHlch(13.90, 46.38, 307.36°)
OKLaboklab(27.01% 0.0395 -0.1058)
OKLCHoklch(27.01% 0.113 290.5)
XYZxyz(2.9436, 1.7122, 9.4060)
Luminance0.0171 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291558 #445815
analogous
#152358 #291558 #4B1558
triadic
#291558 #582915 #155829
tetradic
#291558 #581523 #445815 #15584B
square
#291558 #581523 #445815 #15584B
split-complementary
#291558 #584B15 #235815
monochromatic
#0C0619 #120927 #291558 #402189 #572DBB

Accessibility & contrast

On white

15.64
#291558 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.34
#291558 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291558
15.64:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291558#FFFFFF#000000##FFFFFF
##2915581.0015.641.3415.64
#FFFFFF15.641.0021.001.00
#0000001.3421.001.0021.00
##FFFFFF15.641.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00255A
Deuteranopia (green-blind)
#002257
Tritanopia (blue-blind)
#192634
Achromatopsia (no color)
#232323

Design tokens & code

CSS
--color: #291558;
/* rgb */ color: rgb(41, 21, 88);
/* oklch */ color: oklch(27.0% 0.113 290.5);
Tailwind
colors: {
  custom: {
    50: '#685488',
    500: '#291558',
    950: '#000000',
  },
}
SCSS
$custom: #291558;
$custom-light: #685488;
$custom-dark: #000000;
JSON
{
  "hex": "#291558",
  "rgb": {
    "r": 41,
    "g": 21,
    "b": 88
  },
  "hsl": {
    "h": 257.91,
    "s": 61.468,
    "l": 21.373
  },
  "oklch": {
    "l": 0.27013,
    "c": 0.1129,
    "h": 290.5
  },
  "luminance": 0.01712
}

Semantic roles & 50–950 ramp

primary
#291558
secondary
#769039
accent
#E543B4
background
#F6F4F8
surface
#EBE7F0
border
#C6C3CB
text
#07030B
muted
#7A787C

Preview Lab

Preview with #291558

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

Preview Lab → · Contrast checker → · Palette generator →

#291558 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva