#3A1357#3A1357

#3A1357 is a dark, moderate violet. Relative luminance 0.021; OKLCH L 28.8% C 0.117 H 306.5°. Best body text is #FFFFFF at 14.89:1 contrast (WCAG AA passes).

Color values

HEX#3A1357
RGBrgb(58, 19, 87)
HSLhsl(274, 64%, 21%)
HSVhsv(274, 78%, 34%)
CMYKcmyk(33.3%, 78.2%, 0%, 65.9%)
CIE-LABlab(15.77, 32.50, -33.05)
CIE-LCHlch(15.77, 46.35, 314.52°)
OKLaboklab(28.83% 0.0695 -0.0939)
OKLCHoklch(28.83% 0.117 306.5)
XYZxyz(3.6977, 2.0534, 9.2165)
Luminance0.0205 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1357 #305713
analogous
#181357 #3A1357 #571352
triadic
#3A1357 #573A13 #13573A
tetradic
#3A1357 #571813 #305713 #135257
square
#3A1357 #571813 #305713 #135257
split-complementary
#3A1357 #525713 #135718
monochromatic
#110519 #190825 #3A1357 #5B1E89 #7D29BB

Accessibility & contrast

On white

14.89
#3A1357 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A1357
14.89:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1357#FFFFFF#000000##FFFFFF
##3A13571.0014.891.4114.89
#FFFFFF14.891.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.891.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002659
Deuteranopia (green-blind)
#002756
Tritanopia (blue-blind)
#352333
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a1357;
/* rgb */ color: rgb(58, 19, 87);
/* oklch */ color: oklch(28.8% 0.117 306.5);
Tailwind
colors: {
  custom: {
    50: '#745587',
    500: '#3a1357',
    950: '#000000',
  },
}
SCSS
$custom: #3a1357;
$custom-light: #745587;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1357",
  "rgb": {
    "r": 58,
    "g": 19,
    "b": 87
  },
  "hsl": {
    "h": 274.412,
    "s": 64.151,
    "l": 20.784
  },
  "oklch": {
    "l": 0.28833,
    "c": 0.11682,
    "h": 306.5
  },
  "luminance": 0.02053
}

Semantic roles & 50–950 ramp

primary
#3A1357
secondary
#5C8F36
accent
#E74188
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #3A1357

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

Preview Lab → · Contrast checker → · Palette generator →

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