#3A115B#3A115B

#3A115B is a dark, vivid violet. Relative luminance 0.021; OKLCH L 28.9% C 0.124 H 304.8°. Best body text is #FFFFFF at 14.88:1 contrast (WCAG AA passes).

Color values

HEX#3A115B
RGBrgb(58, 17, 91)
HSLhsl(273, 69%, 21%)
HSVhsv(273, 81%, 36%)
CMYKcmyk(36.3%, 81.3%, 0%, 64.3%)
CIE-LABlab(15.78, 34.50, -35.72)
CIE-LCHlch(15.78, 49.66, 314.00°)
OKLaboklab(28.95% 0.0708 -0.1017)
OKLCHoklch(28.95% 0.124 304.8)
XYZxyz(3.8333, 2.0558, 10.0904)
Luminance0.0206 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A115B #325B11
analogous
#15115B #3A115B #5B1157
triadic
#3A115B #5B3A11 #115B3A
tetradic
#3A115B #5B1511 #325B11 #11575B
square
#3A115B #5B1511 #325B11 #11575B
split-complementary
#3A115B #575B11 #115B15
monochromatic
#10051A #190727 #3A115B #5B1B8F #7C24C2

Accessibility & contrast

On white

14.88
#3A115B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A115B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A115B
14.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A115B#FFFFFF#000000##FFFFFF
##3A115B1.0014.881.4114.88
#FFFFFF14.881.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00265D
Deuteranopia (green-blind)
#00275A
Tritanopia (blue-blind)
#342435
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a115b;
/* rgb */ color: rgb(58, 17, 91);
/* oklch */ color: oklch(28.9% 0.124 304.8);
Tailwind
colors: {
  custom: {
    50: '#74548a',
    500: '#3a115b',
    950: '#000000',
  },
}
SCSS
$custom: #3a115b;
$custom-light: #74548a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a115b",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 91
  },
  "hsl": {
    "h": 273.243,
    "s": 68.519,
    "l": 21.176
  },
  "oklch": {
    "l": 0.2895,
    "c": 0.12391,
    "h": 304.8
  },
  "luminance": 0.02056
}

Semantic roles & 50–950 ramp

primary
#3A115B
secondary
#5F9434
accent
#EB3C8A
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A115B

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

Preview Lab → · Contrast checker → · Palette generator →

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