#291452#291452

#291452 is a dark, moderate violet. Relative luminance 0.016; OKLCH L 26.3% C 0.106 H 293.2°. Best body text is #FFFFFF at 15.96:1 contrast (WCAG AA passes).

Color values

HEX#291452
RGBrgb(41, 20, 82)
HSLhsl(260, 61%, 20%)
HSVhsv(260, 76%, 32%)
CMYKcmyk(50%, 75.6%, 0%, 67.8%)
CIE-LABlab(13.11, 26.83, -34.07)
CIE-LCHlch(13.11, 43.37, 308.22°)
OKLaboklab(26.28% 0.0418 -0.0976)
OKLCHoklch(26.28% 0.106 293.2)
XYZxyz(2.6872, 1.5808, 8.1446)
Luminance0.0158 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291452 #3D5214
analogous
#141E52 #291452 #481452
triadic
#291452 #522914 #145229
tetradic
#291452 #52141E #3D5214 #145248
square
#291452 #52141E #3D5214 #145248
split-complementary
#291452 #524814 #1E5214
monochromatic
#0C0619 #100821 #291452 #422083 #5A2CB4

Accessibility & contrast

On white

15.96
#291452 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.32
#291452 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291452
15.96:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291452#FFFFFF#000000##FFFFFF
##2914521.0015.961.3215.96
#FFFFFF15.961.0021.001.00
#0000001.3221.001.0021.00
##FFFFFF15.961.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002354
Deuteranopia (green-blind)
#002151
Tritanopia (blue-blind)
#1D2431
Achromatopsia (no color)
#222222

Design tokens & code

CSS
--color: #291452;
/* rgb */ color: rgb(41, 20, 82);
/* oklch */ color: oklch(26.3% 0.106 293.2);
Tailwind
colors: {
  custom: {
    50: '#675383',
    500: '#291452',
    950: '#000000',
  },
}
SCSS
$custom: #291452;
$custom-light: #675383;
$custom-dark: #000000;
JSON
{
  "hex": "#291452",
  "rgb": {
    "r": 41,
    "g": 20,
    "b": 82
  },
  "hsl": {
    "h": 260.323,
    "s": 60.784,
    "l": 20
  },
  "oklch": {
    "l": 0.26277,
    "c": 0.10616,
    "h": 293.2
  },
  "luminance": 0.01581
}

Semantic roles & 50–950 ramp

primary
#291452
secondary
#6E8A38
accent
#E444AE
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #291452

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

Preview Lab → · Contrast checker → · Palette generator →

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