#3A115C#3A115C

#3A115C is a dark, vivid violet. Relative luminance 0.021; OKLCH L 29.0% C 0.125 H 304.3°. Best body text is #FFFFFF at 14.85:1 contrast (WCAG AA passes).

Color values

HEX#3A115C
RGBrgb(58, 17, 92)
HSLhsl(273, 69%, 21%)
HSVhsv(273, 82%, 36%)
CMYKcmyk(37%, 81.5%, 0%, 63.9%)
CIE-LABlab(15.87, 34.76, -36.24)
CIE-LCHlch(15.87, 50.21, 313.80°)
OKLaboklab(29.04% 0.0705 -0.1032)
OKLCHoklch(29.04% 0.125 304.3)
XYZxyz(3.8767, 2.0732, 10.3191)
Luminance0.0207 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A115C #335C11
analogous
#15115C #3A115C #5C1159
triadic
#3A115C #5C3A11 #115C3A
tetradic
#3A115C #5C1511 #335C11 #11595C
square
#3A115C #5C1511 #335C11 #11595C
split-complementary
#3A115C #595C11 #115C15
monochromatic
#10051A #190728 #3A115C #5B1B90 #7B24C3

Accessibility & contrast

On white

14.85
#3A115C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A115C
14.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A115C#FFFFFF#000000##FFFFFF
##3A115C1.0014.851.4114.85
#FFFFFF14.851.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00275E
Deuteranopia (green-blind)
#00275B
Tritanopia (blue-blind)
#332436
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a115c;
/* rgb */ color: rgb(58, 17, 92);
/* oklch */ color: oklch(29.0% 0.125 304.3);
Tailwind
colors: {
  custom: {
    50: '#74548b',
    500: '#3a115c',
    950: '#000000',
  },
}
SCSS
$custom: #3a115c;
$custom-light: #74548b;
$custom-dark: #000000;
JSON
{
  "hex": "#3a115c",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 92
  },
  "hsl": {
    "h": 272.8,
    "s": 68.807,
    "l": 21.373
  },
  "oklch": {
    "l": 0.2904,
    "c": 0.12504,
    "h": 304.3
  },
  "luminance": 0.02073
}

Semantic roles & 50–950 ramp

primary
#3A115C
secondary
#609534
accent
#EC3C8C
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A115C

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

Preview Lab → · Contrast checker → · Palette generator →

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