#3A167A#3A167A

#3A167A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.154 H 291.7°. Best body text is #FFFFFF at 13.33:1 contrast (WCAG AA passes).

Color values

HEX#3A167A
RGBrgb(58, 22, 122)
HSLhsl(262, 69%, 28%)
HSVhsv(262, 82%, 48%)
CMYKcmyk(52.5%, 82%, 0%, 52.2%)
CIE-LABlab(19.55, 40.67, -49.82)
CIE-LCHlch(19.55, 64.32, 309.23°)
OKLaboklab(32.5% 0.0569 -0.1431)
OKLCHoklch(32.5% 0.154 291.7)
XYZxyz(5.5437, 2.8783, 18.6720)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A167A #567A16
analogous
#16247A #3A167A #6C167A
triadic
#3A167A #7A3A16 #167A3A
tetradic
#3A167A #7A1624 #567A16 #167A6C
square
#3A167A #7A1624 #567A16 #167A6C
split-complementary
#3A167A #7A6C16 #247A16
monochromatic
#0C051A #210D46 #3A167A #531FAE #6E31DA

Accessibility & contrast

On white

13.33
#3A167A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3A167A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3A167A
13.33:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A167A#FFFFFF#000000##FFFFFF
##3A167A1.0013.331.5813.33
#FFFFFF13.331.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.331.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317D
Deuteranopia (green-blind)
#002D78
Tritanopia (blue-blind)
#243348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3a167a;
/* rgb */ color: rgb(58, 22, 122);
/* oklch */ color: oklch(32.5% 0.154 291.7);
Tailwind
colors: {
  custom: {
    50: '#7858a1',
    500: '#3a167a',
    950: '#000000',
  },
}
SCSS
$custom: #3a167a;
$custom-light: #7858a1;
$custom-dark: #000000;
JSON
{
  "hex": "#3a167a",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 122
  },
  "hsl": {
    "h": 261.6,
    "s": 69.444,
    "l": 28.235
  },
  "oklch": {
    "l": 0.325,
    "c": 0.15404,
    "h": 291.7
  },
  "luminance": 0.02879
}

Semantic roles & 50–950 ramp

primary
#3A167A
secondary
#86AF3D
accent
#EC3CAD
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A167A

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

Preview Lab → · Contrast checker → · Palette generator →

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