#3A115D#3A115D

#3A115D is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.1% C 0.126 H 303.8°. Best body text is #FFFFFF at 14.81:1 contrast (WCAG AA passes).

Color values

HEX#3A115D
RGBrgb(58, 17, 93)
HSLhsl(272, 69%, 22%)
HSVhsv(272, 82%, 36%)
CMYKcmyk(37.6%, 81.7%, 0%, 63.5%)
CIE-LABlab(15.96, 35.02, -36.76)
CIE-LCHlch(15.96, 50.77, 313.60°)
OKLaboklab(29.13% 0.0703 -0.1048)
OKLCHoklch(29.13% 0.126 303.8)
XYZxyz(3.9207, 2.0908, 10.5508)
Luminance0.0209 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A115D #345D11
analogous
#14115D #3A115D #5D115A
triadic
#3A115D #5D3A11 #115D3A
tetradic
#3A115D #5D1411 #345D11 #115A5D
square
#3A115D #5D1411 #345D11 #115A5D
split-complementary
#3A115D #5A5D11 #115D14
monochromatic
#10051A #1A0829 #3A115D #5A1A91 #7B24C4

Accessibility & contrast

On white

14.81
#3A115D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A115D
14.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A115D#FFFFFF#000000##FFFFFF
##3A115D1.0014.811.4214.81
#FFFFFF14.811.0021.001.00
#0000001.4221.001.0021.00
##FFFFFF14.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275F
Deuteranopia (green-blind)
#00285B
Tritanopia (blue-blind)
#332436
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a115d;
/* rgb */ color: rgb(58, 17, 93);
/* oklch */ color: oklch(29.1% 0.126 303.8);
Tailwind
colors: {
  custom: {
    50: '#74548c',
    500: '#3a115d',
    950: '#000000',
  },
}
SCSS
$custom: #3a115d;
$custom-light: #74548c;
$custom-dark: #000000;
JSON
{
  "hex": "#3a115d",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 93
  },
  "hsl": {
    "h": 272.368,
    "s": 69.091,
    "l": 21.569
  },
  "oklch": {
    "l": 0.29131,
    "c": 0.12616,
    "h": 303.8
  },
  "luminance": 0.02091
}

Semantic roles & 50–950 ramp

primary
#3A115D
secondary
#619634
accent
#EC3C8D
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A115D

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

Preview Lab → · Contrast checker → · Palette generator →

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