#291780#291780

#291780 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.6% C 0.162 H 279.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#291780
RGBrgb(41, 23, 128)
HSLhsl(250, 70%, 30%)
HSVhsv(250, 82%, 50%)
CMYKcmyk(68%, 82%, 0%, 49.8%)
CIE-LABlab(18.55, 39.86, -55.35)
CIE-LCHlch(18.55, 68.21, 305.76°)
OKLaboklab(31.57% 0.0268 -0.1598)
OKLCHoklch(31.57% 0.162 279.5)
XYZxyz(5.1159, 2.6423, 20.6583)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291780 #6E8017
analogous
#173980 #291780 #5E1780
triadic
#291780 #802917 #178029
tetradic
#291780 #801739 #6E8017 #17805E
square
#291780 #801739 #6E8017 #17805E
split-complementary
#291780 #805E17 #398017
monochromatic
#08051A #180E4C #291780 #3A20B4 #5336DB

Accessibility & contrast

On white

13.74
#291780 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#291780 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291780
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291780#FFFFFF#000000##FFFFFF
##2917801.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003183
Deuteranopia (green-blind)
#00297E
Tritanopia (blue-blind)
#00374C
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291780;
/* rgb */ color: rgb(41, 23, 128);
/* oklch */ color: oklch(31.6% 0.162 279.5);
Tailwind
colors: {
  custom: {
    50: '#7058a6',
    500: '#291780',
    950: '#000000',
  },
}
SCSS
$custom: #291780;
$custom-light: #7058a6;
$custom-dark: #000000;
JSON
{
  "hex": "#291780",
  "rgb": {
    "r": 41,
    "g": 23,
    "b": 128
  },
  "hsl": {
    "h": 250.286,
    "s": 69.536,
    "l": 29.608
  },
  "oklch": {
    "l": 0.31567,
    "c": 0.16205,
    "h": 279.5
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#291780
secondary
#A0B43E
accent
#EC3BCE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#09030F
muted
#7B787F

Preview Lab

Preview with #291780

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

Preview Lab → · Contrast checker → · Palette generator →

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