#291162#291162

#291162 is a dark, vivid violet. Relative luminance 0.018; OKLCH L 27.5% C 0.131 H 288.0°. Best body text is #FFFFFF at 15.55:1 contrast (WCAG AA passes).

Color values

HEX#291162
RGBrgb(41, 17, 98)
HSLhsl(258, 70%, 23%)
HSVhsv(258, 83%, 38%)
CMYKcmyk(58.2%, 82.7%, 0%, 61.6%)
CIE-LABlab(14.14, 33.52, -43.16)
CIE-LCHlch(14.14, 54.65, 307.83°)
OKLaboklab(27.5% 0.0403 -0.1242)
OKLCHoklch(27.5% 0.131 288)
XYZxyz(3.3189, 1.7540, 11.7166)
Luminance0.0175 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291162 #4A6211
analogous
#112162 #291162 #521162
triadic
#291162 #622911 #116229
tetradic
#291162 #621121 #4A6211 #116252
square
#291162 #621121 #4A6211 #116252
split-complementary
#291162 #625211 #216211
monochromatic
#0B051A #13082E #291162 #3F1A96 #5523CA

Accessibility & contrast

On white

15.55
#291162 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.35
#291162 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291162
15.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291162#FFFFFF#000000##FFFFFF
##2911621.0015.551.3515.55
#FFFFFF15.551.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002664
Deuteranopia (green-blind)
#002261
Tritanopia (blue-blind)
#112839
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291162;
/* rgb */ color: rgb(41, 17, 98);
/* oklch */ color: oklch(27.5% 0.131 288.0);
Tailwind
colors: {
  custom: {
    50: '#6b5290',
    500: '#291162',
    950: '#000000',
  },
}
SCSS
$custom: #291162;
$custom-light: #6b5290;
$custom-dark: #000000;
JSON
{
  "hex": "#291162",
  "rgb": {
    "r": 41,
    "g": 17,
    "b": 98
  },
  "hsl": {
    "h": 257.778,
    "s": 70.435,
    "l": 22.549
  },
  "oklch": {
    "l": 0.27496,
    "c": 0.13059,
    "h": 288
  },
  "luminance": 0.01754
}

Semantic roles & 50–950 ramp

primary
#291162
secondary
#7C9A34
accent
#ED3BB8
background
#F6F4F8
surface
#ECE7F0
border
#C7C3CB
text
#07020C
muted
#7A787D

Preview Lab

Preview with #291162

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

Preview Lab → · Contrast checker → · Palette generator →

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