#3A1160#3A1160

#3A1160 is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.4% C 0.130 H 302.4°. Best body text is #FFFFFF at 14.70:1 contrast (WCAG AA passes).

Color values

HEX#3A1160
RGBrgb(58, 17, 96)
HSLhsl(271, 70%, 22%)
HSVhsv(271, 82%, 38%)
CMYKcmyk(39.6%, 82.3%, 0%, 62.4%)
CIE-LABlab(16.23, 35.80, -38.32)
CIE-LCHlch(16.23, 52.44, 313.06°)
OKLaboklab(29.41% 0.0694 -0.1093)
OKLCHoklch(29.41% 0.13 302.4)
XYZxyz(4.0562, 2.1450, 11.2644)
Luminance0.0215 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1160 #376011
analogous
#121160 #3A1160 #60115F
triadic
#3A1160 #603A11 #11603A
tetradic
#3A1160 #601211 #376011 #115F60
square
#3A1160 #601211 #376011 #115F60
split-complementary
#3A1160 #5F6011 #116012
monochromatic
#10051A #1B082C #3A1160 #591A94 #7923C8

Accessibility & contrast

On white

14.70
#3A1160 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.43
#3A1160 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1160
14.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1160#FFFFFF#000000##FFFFFF
##3A11601.0014.701.4314.70
#FFFFFF14.701.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.701.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3a1160;
/* rgb */ color: rgb(58, 17, 96);
/* oklch */ color: oklch(29.4% 0.130 302.4);
Tailwind
colors: {
  custom: {
    50: '#75548e',
    500: '#3a1160',
    950: '#000000',
  },
}
SCSS
$custom: #3a1160;
$custom-light: #75548e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1160",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 96
  },
  "hsl": {
    "h": 271.139,
    "s": 69.912,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29408,
    "c": 0.12954,
    "h": 302.4
  },
  "luminance": 0.02145
}

Semantic roles & 50–950 ramp

primary
#3A1160
secondary
#649934
accent
#ED3B91
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A1160

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

Preview Lab → · Contrast checker → · Palette generator →

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