#3A1060#3A1060

#3A1060 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.3% C 0.131 H 302.6°. Best body text is #FFFFFF at 14.76:1 contrast (WCAG AA passes).

Color values

HEX#3A1060
RGBrgb(58, 16, 96)
HSLhsl(272, 71%, 22%)
HSVhsv(272, 83%, 38%)
CMYKcmyk(39.6%, 83.3%, 0%, 62.4%)
CIE-LABlab(16.08, 36.24, -38.57)
CIE-LCHlch(16.08, 52.93, 313.22°)
OKLaboklab(29.3% 0.0704 -0.1101)
OKLCHoklch(29.3% 0.131 302.6)
XYZxyz(4.0410, 2.1146, 11.2593)
Luminance0.0211 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1060 #366010
analogous
#121060 #3A1060 #60105E
triadic
#3A1060 #603A10 #10603A
tetradic
#3A1060 #601210 #366010 #105E60
square
#3A1060 #601210 #366010 #105E60
split-complementary
#3A1060 #5E6010 #106012
monochromatic
#10041A #1A072C #3A1060 #5A1994 #7921C9

Accessibility & contrast

On white

14.76
#3A1060 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.42
#3A1060 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1060
14.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1060#FFFFFF#000000##FFFFFF
##3A10601.0014.761.4214.76
#FFFFFF14.761.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002762
Deuteranopia (green-blind)
#00285E
Tritanopia (blue-blind)
#322538
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a1060;
/* rgb */ color: rgb(58, 16, 96);
/* oklch */ color: oklch(29.3% 0.131 302.6);
Tailwind
colors: {
  custom: {
    50: '#75548e',
    500: '#3a1060',
    950: '#000000',
  },
}
SCSS
$custom: #3a1060;
$custom-light: #75548e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1060",
  "rgb": {
    "r": 58,
    "g": 16,
    "b": 96
  },
  "hsl": {
    "h": 271.5,
    "s": 71.429,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29302,
    "c": 0.13064,
    "h": 302.6
  },
  "luminance": 0.02115
}

Semantic roles & 50–950 ramp

primary
#3A1060
secondary
#639933
accent
#EE3A8F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1060

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

Preview Lab → · Contrast checker → · Palette generator →

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