#3A115F#3A115F

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

Color values

HEX#3A115F
RGBrgb(58, 17, 95)
HSLhsl(272, 70%, 22%)
HSVhsv(272, 82%, 37%)
CMYKcmyk(38.9%, 82.1%, 0%, 62.7%)
CIE-LABlab(16.14, 35.54, -37.80)
CIE-LCHlch(16.14, 51.89, 313.23°)
OKLaboklab(29.32% 0.0697 -0.1078)
OKLCHoklch(29.32% 0.128 302.9)
XYZxyz(4.0104, 2.1267, 11.0235)
Luminance0.0213 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A115F #365F11
analogous
#13115F #3A115F #5F115D
triadic
#3A115F #5F3A11 #115F3A
tetradic
#3A115F #5F1311 #365F11 #115D5F
square
#3A115F #5F1311 #365F11 #115D5F
split-complementary
#3A115F #5D5F11 #115F13
monochromatic
#10051A #1A082B #3A115F #5A1A93 #7924C7

Accessibility & contrast

On white

14.73
#3A115F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A115F
14.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A115F#FFFFFF#000000##FFFFFF
##3A115F1.0014.731.4314.73
#FFFFFF14.731.0021.001.00
#0000001.4321.001.0021.00
##FFFFFF14.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002761
Deuteranopia (green-blind)
#00285D
Tritanopia (blue-blind)
#322537
Achromatopsia (no color)
#282828

Design tokens & code

CSS
--color: #3a115f;
/* rgb */ color: rgb(58, 17, 95);
/* oklch */ color: oklch(29.3% 0.128 302.9);
Tailwind
colors: {
  custom: {
    50: '#75548d',
    500: '#3a115f',
    950: '#000000',
  },
}
SCSS
$custom: #3a115f;
$custom-light: #75548d;
$custom-dark: #000000;
JSON
{
  "hex": "#3a115f",
  "rgb": {
    "r": 58,
    "g": 17,
    "b": 95
  },
  "hsl": {
    "h": 271.538,
    "s": 69.643,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29315,
    "c": 0.12841,
    "h": 302.9
  },
  "luminance": 0.02127
}

Semantic roles & 50–950 ramp

primary
#3A115F
secondary
#639834
accent
#EC3B8F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#09030C
muted
#7B787D

Preview Lab

Preview with #3A115F

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

Preview Lab → · Contrast checker → · Palette generator →

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