#3A154C#3A154C

#3A154C is a dark, moderate purple. Relative luminance 0.020; OKLCH L 28.2% C 0.101 H 312.7°. Best body text is #FFFFFF at 15.09:1 contrast (WCAG AA passes).

Color values

HEX#3A154C
RGBrgb(58, 21, 76)
HSLhsl(280, 57%, 19%)
HSVhsv(280, 72%, 30%)
CMYKcmyk(23.7%, 72.4%, 0%, 70.2%)
CIE-LABlab(15.26, 28.64, -26.37)
CIE-LCHlch(15.26, 38.93, 317.37°)
OKLaboklab(28.2% 0.0685 -0.0743)
OKLCHoklch(28.2% 0.101 312.7)
XYZxyz(3.3174, 1.9578, 7.0392)
Luminance0.0196 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A154C #274C15
analogous
#1F154C #3A154C #4C1543
triadic
#3A154C #4C3A15 #154C3A
tetradic
#3A154C #4C1F15 #274C15 #15434C
square
#3A154C #4C1F15 #274C15 #15434C
split-complementary
#3A154C #434C15 #154C1F
monochromatic
#120718 #15081C #3A154C #5F227C #832FAC

Accessibility & contrast

On white

15.09
#3A154C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.39
#3A154C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A154C
15.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A154C#FFFFFF#000000##FFFFFF
##3A154C1.0015.091.3915.09
#FFFFFF15.091.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244E
Deuteranopia (green-blind)
#11274B
Tritanopia (blue-blind)
#38202E
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a154c;
/* rgb */ color: rgb(58, 21, 76);
/* oklch */ color: oklch(28.2% 0.101 312.7);
Tailwind
colors: {
  custom: {
    50: '#72557e',
    500: '#3a154c',
    950: '#000000',
  },
}
SCSS
$custom: #3a154c;
$custom-light: #72557e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a154c",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 76
  },
  "hsl": {
    "h": 280.364,
    "s": 56.701,
    "l": 19.02
  },
  "oklch": {
    "l": 0.28198,
    "c": 0.10104,
    "h": 312.7
  },
  "luminance": 0.01958
}

Semantic roles & 50–950 ramp

primary
#3A154C
secondary
#518439
accent
#E0487A
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A154C

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

Preview Lab → · Contrast checker → · Palette generator →

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