#3B167B#3B167B

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

Color values

HEX#3B167B
RGBrgb(59, 22, 123)
HSLhsl(262, 70%, 28%)
HSVhsv(262, 82%, 48%)
CMYKcmyk(52%, 82.1%, 0%, 51.8%)
CIE-LABlab(19.78, 41.10, -50.09)
CIE-LCHlch(19.78, 64.79, 309.37°)
OKLaboklab(32.72% 0.0583 -0.1439)
OKLCHoklch(32.72% 0.155 292)
XYZxyz(5.6647, 2.9335, 19.0028)
Luminance0.0293 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B167B #567B16
analogous
#16237B #3B167B #6D167B
triadic
#3B167B #7B3B16 #167B3B
tetradic
#3B167B #7B1623 #567B16 #167B6D
square
#3B167B #7B1623 #567B16 #167B6D
split-complementary
#3B167B #7B6D16 #237B16
monochromatic
#0C051A #220D47 #3B167B #541FAF #6F31DA

Accessibility & contrast

On white

13.23
#3B167B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B167B
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B167B#FFFFFF#000000##FFFFFF
##3B167B1.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b167b;
/* rgb */ color: rgb(59, 22, 123);
/* oklch */ color: oklch(32.7% 0.155 292.0);
Tailwind
colors: {
  custom: {
    50: '#7959a2',
    500: '#3b167b',
    950: '#000000',
  },
}
SCSS
$custom: #3b167b;
$custom-light: #7959a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b167b",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 123
  },
  "hsl": {
    "h": 261.98,
    "s": 69.655,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32716,
    "c": 0.15521,
    "h": 292
  },
  "luminance": 0.02934
}

Semantic roles & 50–950 ramp

primary
#3B167B
secondary
#86B03D
accent
#EC3BAC
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B167B

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

Preview Lab → · Contrast checker → · Palette generator →

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