#3B168F#3B168F

#3B168F is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.8% C 0.178 H 286.7°. Best body text is #FFFFFF at 12.37:1 contrast (WCAG AA passes).

Color values

HEX#3B168F
RGBrgb(59, 22, 143)
HSLhsl(258, 73%, 32%)
HSVhsv(258, 85%, 56%)
CMYKcmyk(58.7%, 84.6%, 0%, 43.9%)
CIE-LABlab(21.90, 46.71, -59.19)
CIE-LCHlch(21.90, 75.40, 308.28°)
OKLaboklab(34.82% 0.0511 -0.1705)
OKLCHoklch(34.82% 0.178 286.7)
XYZxyz(7.0470, 3.4864, 26.2829)
Luminance0.0349 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B168F #6A8F16
analogous
#162E8F #3B168F #77168F
triadic
#3B168F #8F3B16 #168F3B
tetradic
#3B168F #8F162E #6A8F16 #168F77
square
#3B168F #8F162E #6A8F16 #168F77
split-complementary
#3B168F #8F7716 #2E8F16
monochromatic
#0F0625 #250E5A #3B168F #511EC4 #703EE1

Accessibility & contrast

On white

12.37
#3B168F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#3B168F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B168F
12.37:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B168F#FFFFFF#000000##FFFFFF
##3B168F1.0012.371.7012.37
#FFFFFF12.371.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.371.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003792
Deuteranopia (green-blind)
#00318D
Tritanopia (blue-blind)
#103C54
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #3b168f;
/* rgb */ color: rgb(59, 22, 143);
/* oklch */ color: oklch(34.8% 0.178 286.7);
Tailwind
colors: {
  custom: {
    50: '#7c5ab1',
    500: '#3b168f',
    950: '#000000',
  },
}
SCSS
$custom: #3b168f;
$custom-light: #7c5ab1;
$custom-dark: #000000;
JSON
{
  "hex": "#3b168f",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 143
  },
  "hsl": {
    "h": 258.347,
    "s": 73.333,
    "l": 32.353
  },
  "oklch": {
    "l": 0.34815,
    "c": 0.17796,
    "h": 286.7
  },
  "luminance": 0.03487
}

Semantic roles & 50–950 ramp

primary
#3B168F
secondary
#9AC13F
accent
#F038B8
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0411
muted
#7C7980

Preview Lab

Preview with #3B168F

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

Preview Lab → · Contrast checker → · Palette generator →

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