#291682#291682

#291682 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.165 H 279.3°. Best body text is #FFFFFF at 13.71:1 contrast (WCAG AA passes).

Color values

HEX#291682
RGBrgb(41, 22, 130)
HSLhsl(251, 71%, 30%)
HSVhsv(251, 83%, 51%)
CMYKcmyk(68.5%, 83.1%, 0%, 49%)
CIE-LABlab(18.61, 40.98, -56.52)
CIE-LCHlch(18.61, 69.81, 305.94°)
OKLaboklab(31.68% 0.0267 -0.1632)
OKLCHoklch(31.68% 0.165 279.3)
XYZxyz(5.2293, 2.6565, 21.3519)
Luminance0.0266 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291682 #6F8216
analogous
#163982 #291682 #5F1682
triadic
#291682 #822916 #168229
tetradic
#291682 #821639 #6F8216 #16825F
square
#291682 #821639 #6F8216 #16825F
split-complementary
#291682 #825F16 #398216
monochromatic
#08041A #180D4E #291682 #3A1FB6 #5335DD

Accessibility & contrast

On white

13.71
#291682 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291682
13.71:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291682#FFFFFF#000000##FFFFFF
##2916821.0013.711.5313.71
#FFFFFF13.711.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.711.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003185
Deuteranopia (green-blind)
#002980
Tritanopia (blue-blind)
#00374D
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #291682;
/* rgb */ color: rgb(41, 22, 130);
/* oklch */ color: oklch(31.7% 0.165 279.3);
Tailwind
colors: {
  custom: {
    50: '#7157a7',
    500: '#291682',
    950: '#000000',
  },
}
SCSS
$custom: #291682;
$custom-light: #7157a7;
$custom-dark: #000000;
JSON
{
  "hex": "#291682",
  "rgb": {
    "r": 41,
    "g": 22,
    "b": 130
  },
  "hsl": {
    "h": 250.556,
    "s": 71.053,
    "l": 29.804
  },
  "oklch": {
    "l": 0.31678,
    "c": 0.16537,
    "h": 279.3
  },
  "luminance": 0.02657
}

Semantic roles & 50–950 ramp

primary
#291682
secondary
#A1B73D
accent
#EE3ACE
background
#F7F5FA
surface
#EDE9F4
border
#C8C5CE
text
#090310
muted
#7B787F

Preview Lab

Preview with #291682

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

Preview Lab → · Contrast checker → · Palette generator →

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