#3B168D#3B168D

#3B168D is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.6% C 0.176 H 287.1°. Best body text is #FFFFFF at 12.46:1 contrast (WCAG AA passes).

Color values

HEX#3B168D
RGBrgb(59, 22, 141)
HSLhsl(259, 73%, 32%)
HSVhsv(259, 84%, 55%)
CMYKcmyk(58.2%, 84.4%, 0%, 44.7%)
CIE-LABlab(21.68, 46.15, -58.31)
CIE-LCHlch(21.68, 74.36, 308.36°)
OKLaboklab(34.6% 0.0518 -0.1679)
OKLCHoklch(34.6% 0.176 287.1)
XYZxyz(6.8968, 3.4263, 25.4921)
Luminance0.0343 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B168D #688D16
analogous
#162D8D #3B168D #76168D
triadic
#3B168D #8D3B16 #168D3B
tetradic
#3B168D #8D162D #688D16 #168D76
square
#3B168D #8D162D #688D16 #168D76
split-complementary
#3B168D #8D7616 #2D8D16
monochromatic
#0F0523 #250E58 #3B168D #511EC2 #703DE1

Accessibility & contrast

On white

12.46
#3B168D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.69
#3B168D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B168D
12.46:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B168D#FFFFFF#000000##FFFFFF
##3B168D1.0012.461.6912.46
#FFFFFF12.461.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.461.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003790
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#133B53
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b168d;
/* rgb */ color: rgb(59, 22, 141);
/* oklch */ color: oklch(34.6% 0.176 287.1);
Tailwind
colors: {
  custom: {
    50: '#7c5ab0',
    500: '#3b168d',
    950: '#000000',
  },
}
SCSS
$custom: #3b168d;
$custom-light: #7c5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b168d",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 141
  },
  "hsl": {
    "h": 258.655,
    "s": 73.006,
    "l": 31.961
  },
  "oklch": {
    "l": 0.346,
    "c": 0.1757,
    "h": 287.1
  },
  "luminance": 0.03427
}

Semantic roles & 50–950 ramp

primary
#3B168D
secondary
#98C13E
accent
#F038B7
background
#F8F5FA
surface
#EFE9F5
border
#CAC5CF
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B168D

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

Preview Lab → · Contrast checker → · Palette generator →

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