#3A154E#3A154E

#3A154E is a dark, moderate violet. Relative luminance 0.020; OKLCH L 28.4% C 0.103 H 311.4°. Best body text is #FFFFFF at 15.03:1 contrast (WCAG AA passes).

Color values

HEX#3A154E
RGBrgb(58, 21, 78)
HSLhsl(279, 58%, 19%)
HSVhsv(279, 73%, 31%)
CMYKcmyk(25.6%, 73.1%, 0%, 69.4%)
CIE-LABlab(15.41, 29.15, -27.50)
CIE-LCHlch(15.41, 40.07, 316.67°)
OKLaboklab(28.35% 0.0684 -0.0776)
OKLCHoklch(28.35% 0.103 311.4)
XYZxyz(3.3880, 1.9860, 7.4111)
Luminance0.0199 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A154E #294E15
analogous
#1D154E #3A154E #4E1546
triadic
#3A154E #4E3A15 #154E3A
tetradic
#3A154E #4E1D15 #294E15 #15464E
square
#3A154E #4E1D15 #294E15 #15464E
split-complementary
#3A154E #464E15 #154E1D
monochromatic
#120618 #16081E #3A154E #5E227E #822FAE

Accessibility & contrast

On white

15.03
#3A154E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.40
#3A154E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A154E
15.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A154E#FFFFFF#000000##FFFFFF
##3A154E1.0015.031.4015.03
#FFFFFF15.031.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF15.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002550
Deuteranopia (green-blind)
#0F274D
Tritanopia (blue-blind)
#38212F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a154e;
/* rgb */ color: rgb(58, 21, 78);
/* oklch */ color: oklch(28.4% 0.103 311.4);
Tailwind
colors: {
  custom: {
    50: '#735580',
    500: '#3a154e',
    950: '#000000',
  },
}
SCSS
$custom: #3a154e;
$custom-light: #735580;
$custom-dark: #000000;
JSON
{
  "hex": "#3a154e",
  "rgb": {
    "r": 58,
    "g": 21,
    "b": 78
  },
  "hsl": {
    "h": 278.947,
    "s": 57.576,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28353,
    "c": 0.1034,
    "h": 311.4
  },
  "luminance": 0.01986
}

Semantic roles & 50–950 ramp

primary
#3A154E
secondary
#548639
accent
#E1477D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A154E

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

Preview Lab → · Contrast checker → · Palette generator →

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