#3B166F#3B166F

#3B166F is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.5% C 0.141 H 296.1°. Best body text is #FFFFFF at 13.72:1 contrast (WCAG AA passes).

Color values

HEX#3B166F
RGBrgb(59, 22, 111)
HSLhsl(265, 67%, 26%)
HSVhsv(265, 80%, 44%)
CMYKcmyk(46.8%, 80.2%, 0%, 56.5%)
CIE-LABlab(18.59, 37.74, -44.31)
CIE-LCHlch(18.59, 58.21, 310.42°)
OKLaboklab(31.53% 0.0621 -0.1269)
OKLCHoklch(31.53% 0.141 296.1)
XYZxyz(4.9590, 2.6512, 15.2863)
Luminance0.0265 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B166F #4A6F16
analogous
#161D6F #3B166F #67166F
triadic
#3B166F #6F3B16 #166F3B
tetradic
#3B166F #6F161D #4A6F16 #166F67
square
#3B166F #6F161D #4A6F16 #166F67
split-complementary
#3B166F #6F6716 #1D6F16
monochromatic
#0E051A #200C3C #3B166F #5620A2 #712BD5

Accessibility & contrast

On white

13.72
#3B166F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3B166F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B166F
13.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B166F#FFFFFF#000000##FFFFFF
##3B166F1.0013.721.5313.72
#FFFFFF13.721.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E71
Deuteranopia (green-blind)
#002C6D
Tritanopia (blue-blind)
#2D2E42
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b166f;
/* rgb */ color: rgb(59, 22, 111);
/* oklch */ color: oklch(31.5% 0.141 296.1);
Tailwind
colors: {
  custom: {
    50: '#775899',
    500: '#3b166f',
    950: '#000000',
  },
}
SCSS
$custom: #3b166f;
$custom-light: #775899;
$custom-dark: #000000;
JSON
{
  "hex": "#3b166f",
  "rgb": {
    "r": 59,
    "g": 22,
    "b": 111
  },
  "hsl": {
    "h": 264.944,
    "s": 66.917,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31527,
    "c": 0.1413,
    "h": 296.1
  },
  "luminance": 0.02651
}

Semantic roles & 50–950 ramp

primary
#3B166F
secondary
#79A53C
accent
#EA3EA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B166F

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

Preview Lab → · Contrast checker → · Palette generator →

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