#3A167C#3A167C

#3A167C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.156 H 291.1°. Best body text is #FFFFFF at 13.24:1 contrast (WCAG AA passes).

Color values

HEX#3A167C
RGBrgb(58, 22, 124)
HSLhsl(261, 70%, 29%)
HSVhsv(261, 82%, 49%)
CMYKcmyk(53.2%, 82.3%, 0%, 51.4%)
CIE-LABlab(19.75, 41.24, -50.76)
CIE-LCHlch(19.75, 65.40, 309.09°)
OKLaboklab(32.7% 0.0563 -0.1459)
OKLCHoklch(32.7% 0.156 291.1)
XYZxyz(5.6689, 2.9284, 19.3314)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A167C #587C16
analogous
#16257C #3A167C #6D167C
triadic
#3A167C #7C3A16 #167C3A
tetradic
#3A167C #7C1625 #587C16 #167C6D
square
#3A167C #7C1625 #587C16 #167C6D
split-complementary
#3A167C #7C6D16 #257C16
monochromatic
#0C051A #220D48 #3A167C #521FB0 #6D32DB

Accessibility & contrast

On white

13.24
#3A167C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3A167C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A167C
13.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A167C#FFFFFF#000000##FFFFFF
##3A167C1.0013.241.5913.24
#FFFFFF13.241.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#233449
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a167c;
/* rgb */ color: rgb(58, 22, 124);
/* oklch */ color: oklch(32.7% 0.156 291.1);
Tailwind
colors: {
  custom: {
    50: '#7858a3',
    500: '#3a167c',
    950: '#000000',
  },
}
SCSS
$custom: #3a167c;
$custom-light: #7858a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3a167c",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 124
  },
  "hsl": {
    "h": 261.176,
    "s": 69.863,
    "l": 28.627
  },
  "oklch": {
    "l": 0.32704,
    "c": 0.15635,
    "h": 291.1
  },
  "luminance": 0.02929
}

Semantic roles & 50–950 ramp

primary
#3A167C
secondary
#88B13D
accent
#ED3BAE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A167C

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

Preview Lab → · Contrast checker → · Palette generator →

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