#3B166D#3B166D

#3B166D is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.139 H 296.8°. Best body text is #FFFFFF at 13.80:1 contrast (WCAG AA passes).

Color values

HEX#3B166D
RGBrgb(59, 22, 109)
HSLhsl(266, 66%, 26%)
HSVhsv(266, 80%, 43%)
CMYKcmyk(45.9%, 79.8%, 0%, 57.3%)
CIE-LABlab(18.40, 37.19, -43.32)
CIE-LCHlch(18.40, 57.09, 310.64°)
OKLaboklab(31.34% 0.0627 -0.124)
OKLCHoklch(31.34% 0.139 296.8)
XYZxyz(4.8501, 2.6077, 14.7128)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B166D #486D16
analogous
#161D6D #3B166D #66166D
triadic
#3B166D #6D3B16 #166D3B
tetradic
#3B166D #6D161D #486D16 #166D66
square
#3B166D #6D161D #486D16 #166D66
split-complementary
#3B166D #6D6616 #1D6D16
monochromatic
#0E0519 #1F0C3A #3B166D #5720A0 #722BD3

Accessibility & contrast

On white

13.80
#3B166D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#3B166D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B166D
13.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B166D#FFFFFF#000000##FFFFFF
##3B166D1.0013.801.5213.80
#FFFFFF13.801.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002C6B
Tritanopia (blue-blind)
#2E2D41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b166d;
/* rgb */ color: rgb(59, 22, 109);
/* oklch */ color: oklch(31.3% 0.139 296.8);
Tailwind
colors: {
  custom: {
    50: '#775898',
    500: '#3b166d',
    950: '#000000',
  },
}
SCSS
$custom: #3b166d;
$custom-light: #775898;
$custom-dark: #000000;
JSON
{
  "hex": "#3b166d",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 109
  },
  "hsl": {
    "h": 265.517,
    "s": 66.412,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31335,
    "c": 0.13896,
    "h": 296.8
  },
  "luminance": 0.02608
}

Semantic roles & 50–950 ramp

primary
#3B166D
secondary
#77A33C
accent
#E93EA1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B166D

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

Preview Lab → · Contrast checker → · Palette generator →

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