#3B156E#3B156E

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

Color values

HEX#3B156E
RGBrgb(59, 21, 110)
HSLhsl(266, 68%, 26%)
HSVhsv(266, 81%, 43%)
CMYKcmyk(46.4%, 80.9%, 0%, 56.9%)
CIE-LABlab(18.33, 37.94, -44.09)
CIE-LCHlch(18.33, 58.16, 310.71°)
OKLaboklab(31.32% 0.0633 -0.1263)
OKLCHoklch(31.32% 0.141 296.6)
XYZxyz(4.8855, 2.5918, 14.9917)
Luminance0.0259 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B156E #486E15
analogous
#151B6E #3B156E #67156E
triadic
#3B156E #6E3B15 #156E3B
tetradic
#3B156E #6E151B #486E15 #156E67
square
#3B156E #6E151B #486E15 #156E67
split-complementary
#3B156E #6E6715 #1B6E15
monochromatic
#0E051A #1F0B3B #3B156E #571FA1 #7229D5

Accessibility & contrast

On white

13.83
#3B156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B156E
13.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B156E#FFFFFF#000000##FFFFFF
##3B156E1.0013.831.5213.83
#FFFFFF13.831.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D70
Deuteranopia (green-blind)
#002C6C
Tritanopia (blue-blind)
#2D2D41
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3b156e;
/* rgb */ color: rgb(59, 21, 110);
/* oklch */ color: oklch(31.3% 0.141 296.6);
Tailwind
colors: {
  custom: {
    50: '#775798',
    500: '#3b156e',
    950: '#000000',
  },
}
SCSS
$custom: #3b156e;
$custom-light: #775798;
$custom-dark: #000000;
JSON
{
  "hex": "#3b156e",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 265.618,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31315,
    "c": 0.14124,
    "h": 296.6
  },
  "luminance": 0.02592
}

Semantic roles & 50–950 ramp

primary
#3B156E
secondary
#77A43A
accent
#EB3DA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3B156E

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

Preview Lab → · Contrast checker → · Palette generator →

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