#3A157E#3A157E

#3A157E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.8% C 0.160 H 290.7°. Best body text is #FFFFFF at 13.22:1 contrast (WCAG AA passes).

Color values

HEX#3A157E
RGBrgb(58, 21, 126)
HSLhsl(261, 71%, 29%)
HSVhsv(261, 83%, 49%)
CMYKcmyk(54%, 83.3%, 0%, 50.6%)
CIE-LABlab(19.81, 42.24, -51.94)
CIE-LCHlch(19.81, 66.95, 309.12°)
OKLaboklab(32.81% 0.0563 -0.1493)
OKLCHoklch(32.81% 0.16 290.7)
XYZxyz(5.7779, 2.9420, 19.9980)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A157E #597E15
analogous
#15257E #3A157E #6F157E
triadic
#3A157E #7E3A15 #157E3A
tetradic
#3A157E #7E1525 #597E15 #157E6F
square
#3A157E #7E1525 #597E15 #157E6F
split-complementary
#3A157E #7E6F15 #257E15
monochromatic
#0C041A #220C4A #3A157E #521EB2 #6D31DD

Accessibility & contrast

On white

13.22
#3A157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A157E
13.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A157E#FFFFFF#000000##FFFFFF
##3A157E1.0013.221.5913.22
#FFFFFF13.221.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002E7C
Tritanopia (blue-blind)
#21344A
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a157e;
/* rgb */ color: rgb(58, 21, 126);
/* oklch */ color: oklch(32.8% 0.160 290.7);
Tailwind
colors: {
  custom: {
    50: '#7958a4',
    500: '#3a157e',
    950: '#000000',
  },
}
SCSS
$custom: #3a157e;
$custom-light: #7958a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3a157e",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 261.143,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.32805,
    "c": 0.15958,
    "h": 290.7
  },
  "luminance": 0.02942
}

Semantic roles & 50–950 ramp

primary
#3A157E
secondary
#89B33C
accent
#EE3AAF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A157E

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

Preview Lab → · Contrast checker → · Palette generator →

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