#3A164F#3A164F

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

Color values

HEX#3A164F
RGBrgb(58, 22, 79)
HSLhsl(278, 56%, 20%)
HSVhsv(278, 72%, 31%)
CMYKcmyk(26.6%, 72.2%, 0%, 69%)
CIE-LABlab(15.68, 28.86, -27.75)
CIE-LCHlch(15.68, 40.04, 316.13°)
OKLaboklab(28.57% 0.067 -0.0783)
OKLCHoklch(28.57% 0.103 310.5)
XYZxyz(3.4428, 2.0379, 7.6076)
Luminance0.0204 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A164F #2B4F16
analogous
#1E164F #3A164F #4F1648
triadic
#3A164F #4F3A16 #164F3A
tetradic
#3A164F #4F1E16 #2B4F16 #16484F
square
#3A164F #4F1E16 #2B4F16 #16484F
split-complementary
#3A164F #484F16 #164F1E
monochromatic
#120718 #17091F #3A164F #5D237F #8031AF

Accessibility & contrast

On white

14.92
#3A164F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.41
#3A164F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A164F
14.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A164F#FFFFFF#000000##FFFFFF
##3A164F1.0014.921.4114.92
#FFFFFF14.921.0021.001.00
#0000001.4121.001.0021.00
##FFFFFF14.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002551
Deuteranopia (green-blind)
#0F284E
Tritanopia (blue-blind)
#372230
Achromatopsia (no color)
#272727

Design tokens & code

CSS
--color: #3a164f;
/* rgb */ color: rgb(58, 22, 79);
/* oklch */ color: oklch(28.6% 0.103 310.5);
Tailwind
colors: {
  custom: {
    50: '#735681',
    500: '#3a164f',
    950: '#000000',
  },
}
SCSS
$custom: #3a164f;
$custom-light: #735681;
$custom-dark: #000000;
JSON
{
  "hex": "#3a164f",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 79
  },
  "hsl": {
    "h": 277.895,
    "s": 56.436,
    "l": 19.804
  },
  "oklch": {
    "l": 0.28573,
    "c": 0.10303,
    "h": 310.5
  },
  "luminance": 0.02038
}

Semantic roles & 50–950 ramp

primary
#3A164F
secondary
#56863A
accent
#E04880
background
#F7F5F7
surface
#EDE9EE
border
#C8C5C9
text
#08030A
muted
#7B787C

Preview Lab

Preview with #3A164F

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

Preview Lab → · Contrast checker → · Palette generator →

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