#3A3052#3A3052

#3A3052 is a dark, muted violet. Relative luminance 0.036; OKLCH L 33.6% C 0.060 H 296.6°. Best body text is #FFFFFF at 12.18:1 contrast (WCAG AA passes).

Color values

HEX#3A3052
RGBrgb(58, 48, 82)
HSLhsl(258, 26%, 25%)
HSVhsv(258, 41%, 32%)
CMYKcmyk(29.3%, 41.5%, 0%, 67.8%)
CIE-LABlab(22.38, 13.06, -19.14)
CIE-LCHlch(22.38, 23.17, 304.30°)
OKLaboklab(33.6% 0.0267 -0.0533)
OKLCHoklch(33.6% 0.06 296.6)
XYZxyz(4.3245, 3.6226, 8.4524)
Luminance0.0362 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A3052 #485230
analogous
#303752 #3A3052 #4B3052
triadic
#3A3052 #523A30 #30523A
tetradic
#3A3052 #523037 #485230 #30524B
square
#3A3052 #523037 #485230 #30524B
split-complementary
#3A3052 #524B30 #375230
monochromatic
#0E0B13 #1F192B #3A3052 #554779 #715D9F

Accessibility & contrast

On white

12.18
#3A3052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#3A3052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A3052
12.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A3052#FFFFFF#000000##FFFFFF
##3A30521.0012.181.7212.18
#FFFFFF12.181.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#273653
Deuteranopia (green-blind)
#293551
Tritanopia (blue-blind)
#35363D
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #3a3052;
/* rgb */ color: rgb(58, 48, 82);
/* oklch */ color: oklch(33.6% 0.060 296.6);
Tailwind
colors: {
  custom: {
    50: '#716882',
    500: '#3a3052',
    950: '#000000',
  },
}
SCSS
$custom: #3a3052;
$custom-light: #716882;
$custom-dark: #000000;
JSON
{
  "hex": "#3a3052",
  "rgb": {
    "r": 58,
    "g": 48,
    "b": 82
  },
  "hsl": {
    "h": 257.647,
    "s": 26.154,
    "l": 25.49
  },
  "oklch": {
    "l": 0.33604,
    "c": 0.05963,
    "h": 296.6
  },
  "luminance": 0.03623
}

Semantic roles & 50–950 ramp

primary
#3A3052
secondary
#77835B
accent
#C365A7
background
#F6F6F8
surface
#ECEBEF
border
#C7C6CA
text
#07060A
muted
#7A7A7C

Preview Lab

Preview with #3A3052

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

Preview Lab → · Contrast checker → · Palette generator →

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