#3B156F#3B156F

#3B156F is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.4% C 0.142 H 296.2°. Best body text is #FFFFFF at 13.79:1 contrast (WCAG AA passes).

Color values

HEX#3B156F
RGBrgb(59, 21, 111)
HSLhsl(265, 68%, 26%)
HSVhsv(265, 81%, 44%)
CMYKcmyk(46.8%, 81.1%, 0%, 56.5%)
CIE-LABlab(18.43, 38.21, -44.58)
CIE-LCHlch(18.43, 58.72, 310.60°)
OKLaboklab(31.41% 0.063 -0.1277)
OKLCHoklch(31.41% 0.142 296.2)
XYZxyz(4.9403, 2.6137, 15.2801)
Luminance0.0261 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B156F #496F15
analogous
#151C6F #3B156F #68156F
triadic
#3B156F #6F3B15 #156F3B
tetradic
#3B156F #6F151C #496F15 #156F68
square
#3B156F #6F151C #496F15 #156F68
split-complementary
#3B156F #6F6815 #1C6F15
monochromatic
#0E051A #200B3C #3B156F #561FA2 #7228D6

Accessibility & contrast

On white

13.79
#3B156F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B156F
13.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B156F#FFFFFF#000000##FFFFFF
##3B156F1.0013.791.5213.79
#FFFFFF13.791.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.791.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3b156f;
/* rgb */ color: rgb(59, 21, 111);
/* oklch */ color: oklch(31.4% 0.142 296.2);
Tailwind
colors: {
  custom: {
    50: '#775799',
    500: '#3b156f',
    950: '#000000',
  },
}
SCSS
$custom: #3b156f;
$custom-light: #775799;
$custom-dark: #000000;
JSON
{
  "hex": "#3b156f",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 111
  },
  "hsl": {
    "h": 265.333,
    "s": 68.182,
    "l": 25.882
  },
  "oklch": {
    "l": 0.31412,
    "c": 0.14239,
    "h": 296.2
  },
  "luminance": 0.02614
}

Semantic roles & 50–950 ramp

primary
#3B156F
secondary
#78A53A
accent
#EB3DA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B156F

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

Preview Lab → · Contrast checker → · Palette generator →

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