#3A1570#3A1570

#3A1570 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.143 H 295.2°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#3A1570
RGBrgb(58, 21, 112)
HSLhsl(264, 68%, 26%)
HSVhsv(264, 81%, 44%)
CMYKcmyk(48.2%, 81.2%, 0%, 56.1%)
CIE-LABlab(18.39, 38.32, -45.29)
CIE-LCHlch(18.39, 59.33, 310.24°)
OKLaboklab(31.39% 0.061 -0.1298)
OKLCHoklch(31.39% 0.143 295.2)
XYZxyz(4.9369, 2.6056, 15.5689)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A1570 #4B7015
analogous
#151D70 #3A1570 #671570
triadic
#3A1570 #703A15 #15703A
tetradic
#3A1570 #70151D #4B7015 #157067
square
#3A1570 #70151D #4B7015 #157067
split-complementary
#3A1570 #706715 #1D7015
monochromatic
#0D051A #1F0B3C #3A1570 #551FA4 #6F29D7

Accessibility & contrast

On white

13.80
#3A1570 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3A1570 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A1570
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A1570#FFFFFF#000000##FFFFFF
##3A15701.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E73
Deuteranopia (green-blind)
#002B6E
Tritanopia (blue-blind)
#2A2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3a1570;
/* rgb */ color: rgb(58, 21, 112);
/* oklch */ color: oklch(31.4% 0.143 295.2);
Tailwind
colors: {
  custom: {
    50: '#77579a',
    500: '#3a1570',
    950: '#000000',
  },
}
SCSS
$custom: #3a1570;
$custom-light: #77579a;
$custom-dark: #000000;
JSON
{
  "hex": "#3a1570",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 112
  },
  "hsl": {
    "h": 264.396,
    "s": 68.421,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31387,
    "c": 0.14346,
    "h": 295.2
  },
  "luminance": 0.02606
}

Semantic roles & 50–950 ramp

primary
#3A1570
secondary
#7AA63B
accent
#EB3DA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3A1570

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

Preview Lab → · Contrast checker → · Palette generator →

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