#291252#291252

#291252 is a dark, moderate violet. Relative luminance 0.015; OKLCH L 26.0% C 0.109 H 293.9°. Best body text is #FFFFFF at 16.12:1 contrast (WCAG AA passes).

Color values

HEX#291252
RGBrgb(41, 18, 82)
HSLhsl(262, 64%, 20%)
HSVhsv(262, 78%, 32%)
CMYKcmyk(50%, 78%, 0%, 67.8%)
CIE-LABlab(12.69, 28.01, -34.76)
CIE-LCHlch(12.69, 44.64, 308.86°)
OKLaboklab(25.98% 0.044 -0.0996)
OKLCHoklch(25.98% 0.109 293.9)
XYZxyz(2.6533, 1.5131, 8.1333)
Luminance0.0151 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291252 #3B5212
analogous
#121B52 #291252 #491252
triadic
#291252 #522912 #125229
tetradic
#291252 #52121B #3B5212 #125249
square
#291252 #52121B #3B5212 #125249
split-complementary
#291252 #524912 #1B5212
monochromatic
#0D0619 #100720 #291252 #421D84 #5B28B6

Accessibility & contrast

On white

16.12
#291252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.30
#291252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #291252
16.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291252#FFFFFF#000000##FFFFFF
##2912521.0016.121.3016.12
#FFFFFF16.121.0021.001.00
#0000001.3021.001.0021.00
##FFFFFF16.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002254
Deuteranopia (green-blind)
#002051
Tritanopia (blue-blind)
#1D2230
Achromatopsia (no color)
#212121

Design tokens & code

CSS
--color: #291252;
/* rgb */ color: rgb(41, 18, 82);
/* oklch */ color: oklch(26.0% 0.109 293.9);
Tailwind
colors: {
  custom: {
    50: '#685283',
    500: '#291252',
    950: '#000000',
  },
}
SCSS
$custom: #291252;
$custom-light: #685283;
$custom-dark: #000000;
JSON
{
  "hex": "#291252",
  "rgb": {
    "r": 41,
    "g": 18,
    "b": 82
  },
  "hsl": {
    "h": 261.563,
    "s": 64,
    "l": 19.608
  },
  "oklch": {
    "l": 0.25977,
    "c": 0.10888,
    "h": 293.9
  },
  "luminance": 0.01513
}

Semantic roles & 50–950 ramp

primary
#291252
secondary
#6C8B35
accent
#E741AB
background
#F6F4F8
surface
#EBE7EF
border
#C6C3CA
text
#06020B
muted
#7A787C

Preview Lab

Preview with #291252

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

Preview Lab → · Contrast checker → · Palette generator →

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