#3A157C#3A157C

#3A157C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.157 H 291.2°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#3A157C
RGBrgb(58, 21, 124)
HSLhsl(262, 71%, 28%)
HSVhsv(262, 83%, 49%)
CMYKcmyk(53.2%, 83.1%, 0%, 51.4%)
CIE-LABlab(19.60, 41.68, -51.01)
CIE-LCHlch(19.60, 65.88, 309.25°)
OKLaboklab(32.6% 0.057 -0.1466)
OKLCHoklch(32.6% 0.157 291.2)
XYZxyz(5.6501, 2.8909, 19.3252)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A157C #577C15
analogous
#15247C #3A157C #6D157C
triadic
#3A157C #7C3A15 #157C3A
tetradic
#3A157C #7C1524 #577C15 #157C6D
square
#3A157C #7C1524 #577C15 #157C6D
split-complementary
#3A157C #7C6D15 #247C15
monochromatic
#0C041A #220C48 #3A157C #521EB0 #6D30DC

Accessibility & contrast

On white

13.31
#3A157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A157C
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A157C#FFFFFF#000000##FFFFFF
##3A157C1.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002D7A
Tritanopia (blue-blind)
#233349
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a157c;
/* rgb */ color: rgb(58, 21, 124);
/* oklch */ color: oklch(32.6% 0.157 291.2);
Tailwind
colors: {
  custom: {
    50: '#7858a3',
    500: '#3a157c',
    950: '#000000',
  },
}
SCSS
$custom: #3a157c;
$custom-light: #7858a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a157c",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 261.553,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32598,
    "c": 0.1573,
    "h": 291.2
  },
  "luminance": 0.02891
}

Semantic roles & 50–950 ramp

primary
#3A157C
secondary
#87B13C
accent
#EE3AAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A157C

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

Preview Lab → · Contrast checker → · Palette generator →

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