#291852#291852

#291852 is a dark, moderate violet. Relative luminance 0.017; OKLCH L 26.9% C 0.100 H 291.7°. Best body text is #FFFFFF at 15.59:1 contrast (WCAG AA passes).

Color values

HEX#291852
RGBrgb(41, 24, 82)
HSLhsl(258, 55%, 21%)
HSVhsv(258, 71%, 32%)
CMYKcmyk(50%, 70.7%, 0%, 67.8%)
CIE-LABlab(14.02, 24.34, -32.59)
CIE-LCHlch(14.02, 40.68, 306.75°)
OKLaboklab(26.93% 0.0371 -0.0932)
OKLCHoklch(26.93% 0.1 291.7)
XYZxyz(2.7637, 1.7338, 8.1700)
Luminance0.0173 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#291852 #415218
analogous
#182452 #291852 #461852
triadic
#291852 #522918 #185229
tetradic
#291852 #521824 #415218 #185246
square
#291852 #521824 #415218 #185246
split-complementary
#291852 #524618 #245218
monochromatic
#0C0718 #110A23 #291852 #412681 #5834B1

Accessibility & contrast

On white

15.59
#291852 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #291852
15.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##291852#FFFFFF#000000##FFFFFF
##2918521.0015.591.3515.59
#FFFFFF15.591.0021.001.00
#0000001.3521.001.0021.00
##FFFFFF15.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002554
Deuteranopia (green-blind)
#002251
Tritanopia (blue-blind)
#1D2632
Achromatopsia (no color)
#242424

Design tokens & code

CSS
--color: #291852;
/* rgb */ color: rgb(41, 24, 82);
/* oklch */ color: oklch(26.9% 0.100 291.7);
Tailwind
colors: {
  custom: {
    50: '#675683',
    500: '#291852',
    950: '#000000',
  },
}
SCSS
$custom: #291852;
$custom-light: #675683;
$custom-dark: #000000;
JSON
{
  "hex": "#291852",
  "rgb": {
    "r": 41,
    "g": 24,
    "b": 82
  },
  "hsl": {
    "h": 257.586,
    "s": 54.717,
    "l": 20.784
  },
  "oklch": {
    "l": 0.26931,
    "c": 0.10035,
    "h": 291.7
  },
  "luminance": 0.01734
}

Semantic roles & 50–950 ramp

primary
#291852
secondary
#73893D
accent
#DE4AB3
background
#F6F5F8
surface
#EBE9EF
border
#C6C5CA
text
#06030B
muted
#7A787C

Preview Lab

Preview with #291852

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

Preview Lab → · Contrast checker → · Palette generator →

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