#3B168E#3B168E

#3B168E is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.177 H 286.9°. Best body text is #FFFFFF at 12.42:1 contrast (WCAG AA passes).

Color values

HEX#3B168E
RGBrgb(59, 22, 142)
HSLhsl(259, 73%, 32%)
HSVhsv(259, 85%, 56%)
CMYKcmyk(58.5%, 84.5%, 0%, 44.3%)
CIE-LABlab(21.79, 46.43, -58.75)
CIE-LCHlch(21.79, 74.88, 308.32°)
OKLaboklab(34.71% 0.0514 -0.1692)
OKLCHoklch(34.71% 0.177 286.9)
XYZxyz(6.9716, 3.4562, 25.8857)
Luminance0.0346 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B168E #698E16
analogous
#162D8E #3B168E #77168E
triadic
#3B168E #8E3B16 #168E3B
tetradic
#3B168E #8E162D #698E16 #168E77
square
#3B168E #8E162D #698E16 #168E77
split-complementary
#3B168E #8E7716 #2D8E16
monochromatic
#0F0624 #250E59 #3B168E #511EC3 #703DE1

Accessibility & contrast

On white

12.42
#3B168E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B168E
12.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B168E#FFFFFF#000000##FFFFFF
##3B168E1.0012.421.6912.42
#FFFFFF12.421.0021.001.00
#0000001.6921.001.0021.00
##FFFFFF12.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003791
Deuteranopia (green-blind)
#00318C
Tritanopia (blue-blind)
#123B54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b168e;
/* rgb */ color: rgb(59, 22, 142);
/* oklch */ color: oklch(34.7% 0.177 286.9);
Tailwind
colors: {
  custom: {
    50: '#7c5ab0',
    500: '#3b168e',
    950: '#000000',
  },
}
SCSS
$custom: #3b168e;
$custom-light: #7c5ab0;
$custom-dark: #000000;
JSON
{
  "hex": "#3b168e",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 142
  },
  "hsl": {
    "h": 258.5,
    "s": 73.171,
    "l": 32.157
  },
  "oklch": {
    "l": 0.34707,
    "c": 0.17684,
    "h": 286.9
  },
  "luminance": 0.03457
}

Semantic roles & 50–950 ramp

primary
#3B168E
secondary
#99C13F
accent
#F038B7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B168E

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

Preview Lab → · Contrast checker → · Palette generator →

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