#3A158D#3A158D

#3A158D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.4% C 0.177 H 286.7°. Best body text is #FFFFFF at 12.56:1 contrast (WCAG AA passes).

Color values

HEX#3A158D
RGBrgb(58, 21, 141)
HSLhsl(259, 74%, 32%)
HSVhsv(259, 85%, 55%)
CMYKcmyk(58.9%, 85.1%, 0%, 44.7%)
CIE-LABlab(21.43, 46.44, -58.72)
CIE-LCHlch(21.43, 74.87, 308.34°)
OKLaboklab(34.4% 0.0507 -0.1691)
OKLCHoklch(34.4% 0.177 286.7)
XYZxyz(6.8194, 3.3586, 25.4831)
Luminance0.0336 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A158D #688D15
analogous
#152C8D #3A158D #76158D
triadic
#3A158D #8D3A15 #158D3A
tetradic
#3A158D #8D152C #688D15 #158D76
square
#3A158D #8D152C #688D15 #158D76
split-complementary
#3A158D #8D7615 #2C8D15
monochromatic
#0E0522 #240D58 #3A158D #501DC2 #6E3BE2

Accessibility & contrast

On white

12.56
#3A158D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#3A158D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A158D
12.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A158D#FFFFFF#000000##FFFFFF
##3A158D1.0012.561.6712.56
#FFFFFF12.561.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003690
Deuteranopia (green-blind)
#00308B
Tritanopia (blue-blind)
#0F3A53
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #3a158d;
/* rgb */ color: rgb(58, 21, 141);
/* oklch */ color: oklch(34.4% 0.177 286.7);
Tailwind
colors: {
  custom: {
    50: '#7b59b0',
    500: '#3a158d',
    950: '#000000',
  },
}
SCSS
$custom: #3a158d;
$custom-light: #7b59b0;
$custom-dark: #000000;
JSON
{
  "hex": "#3a158d",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 141
  },
  "hsl": {
    "h": 258.5,
    "s": 74.074,
    "l": 31.765
  },
  "oklch": {
    "l": 0.34401,
    "c": 0.17658,
    "h": 286.7
  },
  "luminance": 0.03359
}

Semantic roles & 50–950 ramp

primary
#3A158D
secondary
#98C13D
accent
#F137B7
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3A158D

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

Preview Lab → · Contrast checker → · Palette generator →

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