#3A3252#3A3252

#3A3252 is a dark, muted violet. Relative luminance 0.038; OKLCH L 34.0% C 0.056 H 294.7°. Best body text is #FFFFFF at 11.95:1 contrast (WCAG AA passes).

Color values

HEX#3A3252
RGBrgb(58, 50, 82)
HSLhsl(255, 24%, 26%)
HSVhsv(255, 39%, 32%)
CMYKcmyk(29.3%, 39%, 0%, 67.8%)
CIE-LABlab(22.96, 11.69, -18.23)
CIE-LCHlch(22.96, 21.66, 302.68°)
OKLaboklab(34.05% 0.0234 -0.0507)
OKLCHoklch(34.05% 0.056 294.7)
XYZxyz(4.4082, 3.7899, 8.4803)
Luminance0.0379 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3252 #4A5232
analogous
#323A52 #3A3252 #4A3252
triadic
#3A3252 #523A32 #32523A
tetradic
#3A3252 #52323A #4A5232 #32524A
square
#3A3252 #52323A #4A5232 #32524A
split-complementary
#3A3252 #524A32 #3A5232
monochromatic
#0D0C13 #1F1B2C #3A3252 #554978 #70609E

Accessibility & contrast

On white

11.95
#3A3252 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.76
#3A3252 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3252
11.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3252#FFFFFF#000000##FFFFFF
##3A32521.0011.951.7611.95
#FFFFFF11.951.0021.001.00
#0000001.7621.001.0021.00
##FFFFFF11.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#2A3753
Deuteranopia (green-blind)
#2B3651
Tritanopia (blue-blind)
#35373E
Achromatopsia (no color)
#373737

Design tokens & code

CSS
--color: #3a3252;
/* rgb */ color: rgb(58, 50, 82);
/* oklch */ color: oklch(34.0% 0.056 294.7);
Tailwind
colors: {
  custom: {
    50: '#716982',
    500: '#3a3252',
    950: '#000000',
  },
}
SCSS
$custom: #3a3252;
$custom-light: #716982;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3252",
  "rgb": {
    "r": 58,
    "g": 50,
    "b": 82
  },
  "hsl": {
    "h": 255,
    "s": 24.242,
    "l": 25.882
  },
  "oklch": {
    "l": 0.34048,
    "c": 0.05583,
    "h": 294.7
  },
  "luminance": 0.0379
}

Semantic roles & 50–950 ramp

primary
#3A3252
secondary
#79835D
accent
#C167AA
background
#F6F6F8
surface
#ECEBEF
border
#C7C6CA
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #3A3252

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

Preview Lab → · Contrast checker → · Palette generator →

#3A3252 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva