#3A1052#3A1052

#3A1052 is a dark, moderate violet. Relative luminance 0.019; OKLCH L 28.0% C 0.115 H 309.9°. Best body text is #FFFFFF at 15.26:1 contrast (WCAG AA passes).

Color values

HEX#3A1052
RGBrgb(58, 16, 82)
HSLhsl(278, 67%, 19%)
HSVhsv(278, 80%, 32%)
CMYKcmyk(29.3%, 80.5%, 0%, 67.8%)
CIE-LABlab(14.84, 32.66, -31.15)
CIE-LCHlch(14.84, 45.14, 316.35°)
OKLaboklab(28.05% 0.0739 -0.0883)
OKLCHoklch(28.05% 0.115 309.9)
XYZxyz(3.4529, 1.8794, 8.1619)
Luminance0.0188 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1052 #285210
analogous
#191052 #3A1052 #521049
triadic
#3A1052 #523A10 #10523A
tetradic
#3A1052 #521910 #285210 #104952
square
#3A1052 #521910 #285210 #104952
split-complementary
#3A1052 #495210 #105219
monochromatic
#12051A #16061F #3A1052 #5E1A85 #8224B8

Accessibility & contrast

On white

15.26
#3A1052 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.38
#3A1052 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1052
15.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1052#FFFFFF#000000##FFFFFF
##3A10521.0015.261.3815.26
#FFFFFF15.261.0021.001.00
#0000001.3821.001.0021.00
##FFFFFF15.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002454
Deuteranopia (green-blind)
#032651
Tritanopia (blue-blind)
#371F30
Achromatopsia (no color)
#252525

Design tokens & code

CSS
--color: #3a1052;
/* rgb */ color: rgb(58, 16, 82);
/* oklch */ color: oklch(28.0% 0.115 309.9);
Tailwind
colors: {
  custom: {
    50: '#735383',
    500: '#3a1052',
    950: '#000000',
  },
}
SCSS
$custom: #3a1052;
$custom-light: #735383;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1052",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 82
  },
  "hsl": {
    "h": 278.182,
    "s": 67.347,
    "l": 19.216
  },
  "oklch": {
    "l": 0.28046,
    "c": 0.1151,
    "h": 309.9
  },
  "luminance": 0.01879
}

Semantic roles & 50–950 ramp

primary
#3A1052
secondary
#538C32
accent
#EA3E7C
background
#F7F4F8
surface
#EDE7EF
border
#C8C3CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1052

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

Preview Lab → · Contrast checker → · Palette generator →

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