#3B166A#3B166A

#3B166A is a dark, vivid violet. Relative luminance 0.025; OKLCH L 31.1% C 0.135 H 298.0°. Best body text is #FFFFFF at 13.92:1 contrast (WCAG AA passes).

Color values

HEX#3B166A
RGBrgb(59, 22, 106)
HSLhsl(266, 66%, 25%)
HSVhsv(266, 79%, 42%)
CMYKcmyk(44.3%, 79.2%, 0%, 58.4%)
CIE-LABlab(18.12, 36.35, -41.83)
CIE-LCHlch(18.12, 55.42, 311.00°)
OKLaboklab(31.05% 0.0635 -0.1196)
OKLCHoklch(31.05% 0.135 298)
XYZxyz(4.6914, 2.5442, 13.8768)
Luminance0.0254 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B166A #456A16
analogous
#161B6A #3B166A #65166A
triadic
#3B166A #6A3B16 #166A3B
tetradic
#3B166A #6A161B #456A16 #166A65
square
#3B166A #6A161B #456A16 #166A65
split-complementary
#3B166A #6A6516 #1B6A16
monochromatic
#0E0519 #1F0B37 #3B166A #57219D #732BCF

Accessibility & contrast

On white

13.92
#3B166A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#3B166A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B166A
13.92:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B166A#FFFFFF#000000##FFFFFF
##3B166A1.0013.921.5113.92
#FFFFFF13.921.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.921.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C6C
Deuteranopia (green-blind)
#002B68
Tritanopia (blue-blind)
#2F2C3F
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #3b166a;
/* rgb */ color: rgb(59, 22, 106);
/* oklch */ color: oklch(31.1% 0.135 298.0);
Tailwind
colors: {
  custom: {
    50: '#765795',
    500: '#3b166a',
    950: '#000000',
  },
}
SCSS
$custom: #3b166a;
$custom-light: #765795;
$custom-dark: #000000;
JSON
{
  "hex": "#3b166a",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 106
  },
  "hsl": {
    "h": 266.429,
    "s": 65.625,
    "l": 25.098
  },
  "oklch": {
    "l": 0.3105,
    "c": 0.13545,
    "h": 298
  },
  "luminance": 0.02544
}

Semantic roles & 50–950 ramp

primary
#3B166A
secondary
#74A03B
accent
#E93F9E
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3B166A

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

Preview Lab → · Contrast checker → · Palette generator →

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