#3A164D#3A164D

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

Color values

HEX#3A164D
RGBrgb(58, 22, 77)
HSLhsl(279, 56%, 19%)
HSVhsv(279, 71%, 30%)
CMYKcmyk(24.7%, 71.4%, 0%, 69.8%)
CIE-LABlab(15.54, 28.35, -26.62)
CIE-LCHlch(15.54, 38.88, 316.80°)
OKLaboklab(28.42% 0.0671 -0.075)
OKLCHoklch(28.42% 0.101 311.8)
XYZxyz(3.3711, 2.0093, 7.2300)
Luminance0.0201 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A164D #294D16
analogous
#1F164D #3A164D #4D1645
triadic
#3A164D #4D3A16 #164D3A
tetradic
#3A164D #4D1F16 #294D16 #16454D
square
#3A164D #4D1F16 #294D16 #16454D
split-complementary
#3A164D #454D16 #164D1F
monochromatic
#120718 #16081D #3A164D #5E247D #8231AC

Accessibility & contrast

On white

14.98
#3A164D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A164D
14.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A164D#FFFFFF#000000##FFFFFF
##3A164D1.0014.981.4014.98
#FFFFFF14.981.0021.001.00
#0000001.4021.001.0021.00
##FFFFFF14.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00254F
Deuteranopia (green-blind)
#11284C
Tritanopia (blue-blind)
#38212F
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a164d;
/* rgb */ color: rgb(58, 22, 77);
/* oklch */ color: oklch(28.4% 0.101 311.8);
Tailwind
colors: {
  custom: {
    50: '#72567f',
    500: '#3a164d',
    950: '#000000',
  },
}
SCSS
$custom: #3a164d;
$custom-light: #72567f;
$custom-dark: #000000;
JSON
{
  "hex": "#3a164d",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 77
  },
  "hsl": {
    "h": 279.273,
    "s": 55.556,
    "l": 19.412
  },
  "oklch": {
    "l": 0.28417,
    "c": 0.10063,
    "h": 311.8
  },
  "luminance": 0.02009
}

Semantic roles & 50–950 ramp

primary
#3A164D
secondary
#54853A
accent
#DF497D
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A164D

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

Preview Lab → · Contrast checker → · Palette generator →

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