#3A157B#3A157B

#3A157B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.156 H 291.5°. Best body text is #FFFFFF at 13.35:1 contrast (WCAG AA passes).

Color values

HEX#3A157B
RGBrgb(58, 21, 123)
HSLhsl(262, 71%, 28%)
HSVhsv(262, 83%, 48%)
CMYKcmyk(52.8%, 82.9%, 0%, 51.8%)
CIE-LABlab(19.50, 41.40, -50.55)
CIE-LCHlch(19.50, 65.34, 309.32°)
OKLaboklab(32.5% 0.0573 -0.1452)
OKLCHoklch(32.5% 0.156 291.5)
XYZxyz(5.5872, 2.8657, 18.9938)
Luminance0.0287 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A157B #567B15
analogous
#15237B #3A157B #6D157B
triadic
#3A157B #7B3A15 #157B3A
tetradic
#3A157B #7B1523 #567B15 #157B6D
square
#3A157B #7B1523 #567B15 #157B6D
split-complementary
#3A157B #7B6D15 #237B15
monochromatic
#0C041A #210C47 #3A157B #531EAF #6E2FDB

Accessibility & contrast

On white

13.35
#3A157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3A157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A157B
13.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A157B#FFFFFF#000000##FFFFFF
##3A157B1.0013.351.5713.35
#FFFFFF13.351.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#233348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a157b;
/* rgb */ color: rgb(58, 21, 123);
/* oklch */ color: oklch(32.5% 0.156 291.5);
Tailwind
colors: {
  custom: {
    50: '#7858a2',
    500: '#3a157b',
    950: '#000000',
  },
}
SCSS
$custom: #3a157b;
$custom-light: #7858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a157b",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 261.765,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32495,
    "c": 0.15615,
    "h": 291.5
  },
  "luminance": 0.02866
}

Semantic roles & 50–950 ramp

primary
#3A157B
secondary
#86B03B
accent
#EE3AAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A030F
muted
#7C787F

Preview Lab

Preview with #3A157B

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

Preview Lab → · Contrast checker → · Palette generator →

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