#291960#291960

#291960 is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.119 H 286.5°. Best body text is #FFFFFF at 14.98:1 contrast (WCAG AA passes).

Color values

HEX#291960
RGBrgb(41, 25, 96)
HSLhsl(254, 59%, 24%)
HSVhsv(254, 74%, 38%)
CMYKcmyk(57.3%, 74%, 0%, 62.4%)
CIE-LABlab(15.54, 28.34, -39.53)
CIE-LCHlch(15.54, 48.64, 305.64°)
OKLaboklab(28.43% 0.0337 -0.1136)
OKLCHoklch(28.43% 0.119 286.5)
XYZxyz(3.3728, 2.0110, 11.2745)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291960 #506019
analogous
#192C60 #291960 #4C1960
triadic
#291960 #602919 #196029
tetradic
#291960 #60192C #506019 #19604C
square
#291960 #60192C #506019 #19604C
split-complementary
#291960 #604C19 #2C6019
monochromatic
#0A0618 #140C2F #291960 #3E2691 #5232C1

Accessibility & contrast

On white

14.98
#291960 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#291960 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291960
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291960#FFFFFF#000000##FFFFFF
##2919601.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002962
Deuteranopia (green-blind)
#00255F
Tritanopia (blue-blind)
#122B3A
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #291960;
/* rgb */ color: rgb(41, 25, 96);
/* oklch */ color: oklch(28.4% 0.119 286.5);
Tailwind
colors: {
  custom: {
    50: '#69578e',
    500: '#291960',
    950: '#000000',
  },
}
SCSS
$custom: #291960;
$custom-light: #69578e;
$custom-dark: #000000;
JSON
{
  "hex": "#291960",
  "rgb": {
    "r": 41,
    "g": 25,
    "b": 96
  },
  "hsl": {
    "h": 253.521,
    "s": 58.678,
    "l": 23.725
  },
  "oklch": {
    "l": 0.28427,
    "c": 0.11851,
    "h": 286.5
  },
  "luminance": 0.02011
}

Semantic roles & 50–950 ramp

primary
#291960
secondary
#82963F
accent
#E246BF
background
#F6F5F8
surface
#EBE9F0
border
#C6C5CB
text
#07030C
muted
#7A787D

Preview Lab

Preview with #291960

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

Preview Lab → · Contrast checker → · Palette generator →

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