#3A167B#3A167B

#3A167B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.155 H 291.4°. Best body text is #FFFFFF at 13.29:1 contrast (WCAG AA passes).

Color values

HEX#3A167B
RGBrgb(58, 22, 123)
HSLhsl(261, 70%, 28%)
HSVhsv(261, 82%, 48%)
CMYKcmyk(52.8%, 82.1%, 0%, 51.8%)
CIE-LABlab(19.65, 40.96, -50.29)
CIE-LCHlch(19.65, 64.86, 309.16°)
OKLaboklab(32.6% 0.0566 -0.1445)
OKLCHoklch(32.6% 0.155 291.4)
XYZxyz(5.6060, 2.9032, 19.0000)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3A167B #577B16
analogous
#16247B #3A167B #6C167B
triadic
#3A167B #7B3A16 #167B3A
tetradic
#3A167B #7B1624 #577B16 #167B6C
square
#3A167B #7B1624 #577B16 #167B6C
split-complementary
#3A167B #7B6C16 #247B16
monochromatic
#0C051A #220D47 #3A167B #521FAF #6D31DA

Accessibility & contrast

On white

13.29
#3A167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3A167B
13.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3A167B#FFFFFF#000000##FFFFFF
##3A167B1.0013.291.5813.29
#FFFFFF13.291.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#233349
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3a167b;
/* rgb */ color: rgb(58, 22, 123);
/* oklch */ color: oklch(32.6% 0.155 291.4);
Tailwind
colors: {
  custom: {
    50: '#7858a2',
    500: '#3a167b',
    950: '#000000',
  },
}
SCSS
$custom: #3a167b;
$custom-light: #7858a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3a167b",
  "rgb": {
    "r": 58,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 261.386,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32602,
    "c": 0.1552,
    "h": 291.4
  },
  "luminance": 0.02903
}

Semantic roles & 50–950 ramp

primary
#3A167B
secondary
#87B03D
accent
#EC3BAD
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3A167B

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

Preview Lab → · Contrast checker → · Palette generator →

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