#3A154B#3A154B

#3A154B is a dark, moderate purple. Relative luminance 0.019; OKLCH L 28.1% C 0.100 H 313.4°. Best body text is #FFFFFF at 15.12:1 contrast (WCAG AA passes).

Color values

HEX#3A154B
RGBrgb(58, 21, 75)
HSLhsl(281, 56%, 19%)
HSVhsv(281, 72%, 29%)
CMYKcmyk(22.7%, 72%, 0%, 70.6%)
CIE-LABlab(15.19, 28.39, -25.80)
CIE-LCHlch(15.19, 38.36, 317.74°)
OKLaboklab(28.12% 0.0686 -0.0726)
OKLCHoklch(28.12% 0.1 313.4)
XYZxyz(3.2829, 1.9440, 6.8575)
Luminance0.0194 (WCAG relative)
Temperaturecool
Familypurple

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A154B #264B15
analogous
#1F154B #3A154B #4B1541
triadic
#3A154B #4B3A15 #154B3A
tetradic
#3A154B #4B1F15 #264B15 #15414B
square
#3A154B #4B1F15 #264B15 #15414B
split-complementary
#3A154B #414B15 #154B1F
monochromatic
#120718 #15081B #3A154B #5F227B #8430AB

Accessibility & contrast

On white

15.12
#3A154B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A154B
15.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A154B#FFFFFF#000000##FFFFFF
##3A154B1.0015.121.3915.12
#FFFFFF15.121.0021.001.00
#0000001.3921.001.0021.00
##FFFFFF15.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00244D
Deuteranopia (green-blind)
#12274A
Tritanopia (blue-blind)
#381F2D
Achromatopsia (no color)
#262626

Design tokens & code

CSS
--color: #3a154b;
/* rgb */ color: rgb(58, 21, 75);
/* oklch */ color: oklch(28.1% 0.100 313.4);
Tailwind
colors: {
  custom: {
    50: '#72557e',
    500: '#3a154b',
    950: '#000000',
  },
}
SCSS
$custom: #3a154b;
$custom-light: #72557e;
$custom-dark: #000000;
JSON
{
  "hex": "#3a154b",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 75
  },
  "hsl": {
    "h": 281.111,
    "s": 56.25,
    "l": 18.824
  },
  "oklch": {
    "l": 0.28121,
    "c": 0.09986,
    "h": 313.4
  },
  "luminance": 0.01944
}

Semantic roles & 50–950 ramp

primary
#3A154B
secondary
#508339
accent
#E04878
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A154B

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

Preview Lab → · Contrast checker → · Palette generator →

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