#3A157F#3A157F

#3A157F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.161 H 290.4°. Best body text is #FFFFFF at 13.18:1 contrast (WCAG AA passes).

Color values

HEX#3A157F
RGBrgb(58, 21, 127)
HSLhsl(261, 72%, 29%)
HSVhsv(261, 83%, 50%)
CMYKcmyk(54.3%, 83.5%, 0%, 50.2%)
CIE-LABlab(19.91, 42.53, -52.41)
CIE-LCHlch(19.91, 67.49, 309.06°)
OKLaboklab(32.91% 0.0559 -0.1507)
OKLCHoklch(32.91% 0.161 290.4)
XYZxyz(5.8427, 2.9679, 20.3396)
Luminance0.0297 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A157F #5A7F15
analogous
#15257F #3A157F #6F157F
triadic
#3A157F #7F3A15 #157F3A
tetradic
#3A157F #7F1525 #5A7F15 #157F6F
square
#3A157F #7F1525 #5A7F15 #157F6F
split-complementary
#3A157F #7F6F15 #257F15
monochromatic
#0C041A #220C4A #3A157F #521EB4 #6D31DD

Accessibility & contrast

On white

13.18
#3A157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A157F
13.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A157F#FFFFFF#000000##FFFFFF
##3A157F1.0013.181.5913.18
#FFFFFF13.181.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#20354B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a157f;
/* rgb */ color: rgb(58, 21, 127);
/* oklch */ color: oklch(32.9% 0.161 290.4);
Tailwind
colors: {
  custom: {
    50: '#7958a5',
    500: '#3a157f',
    950: '#000000',
  },
}
SCSS
$custom: #3a157f;
$custom-light: #7958a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3a157f",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 260.943,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32909,
    "c": 0.16072,
    "h": 290.4
  },
  "luminance": 0.02968
}

Semantic roles & 50–950 ramp

primary
#3A157F
secondary
#8AB43C
accent
#EE39AF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A157F

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

Preview Lab → · Contrast checker → · Palette generator →

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