#3B157C#3B157C

#3B157C is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.7% C 0.157 H 291.9°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#3B157C
RGBrgb(59, 21, 124)
HSLhsl(262, 71%, 28%)
HSVhsv(262, 83%, 49%)
CMYKcmyk(52.4%, 83.1%, 0%, 51.4%)
CIE-LABlab(19.73, 41.82, -50.81)
CIE-LCHlch(19.73, 65.81, 309.46°)
OKLaboklab(32.71% 0.0586 -0.146)
OKLCHoklch(32.71% 0.157 291.9)
XYZxyz(5.7089, 2.9212, 19.3279)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B157C #567C15
analogous
#15227C #3B157C #6E157C
triadic
#3B157C #7C3B15 #157C3B
tetradic
#3B157C #7C1522 #567C15 #157C6E
square
#3B157C #7C1522 #567C15 #157C6E
split-complementary
#3B157C #7C6E15 #227C15
monochromatic
#0C041A #220C48 #3B157C #541EB0 #6F30DC

Accessibility & contrast

On white

13.26
#3B157C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3B157C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B157C
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B157C#FFFFFF#000000##FFFFFF
##3B157C1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317F
Deuteranopia (green-blind)
#002E7A
Tritanopia (blue-blind)
#253349
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b157c;
/* rgb */ color: rgb(59, 21, 124);
/* oklch */ color: oklch(32.7% 0.157 291.9);
Tailwind
colors: {
  custom: {
    50: '#7958a3',
    500: '#3b157c',
    950: '#000000',
  },
}
SCSS
$custom: #3b157c;
$custom-light: #7958a3;
$custom-dark: #000000;
JSON
{
  "hex": "#3b157c",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 124
  },
  "hsl": {
    "h": 262.136,
    "s": 71.034,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32712,
    "c": 0.1573,
    "h": 291.9
  },
  "luminance": 0.02921
}

Semantic roles & 50–950 ramp

primary
#3B157C
secondary
#86B13C
accent
#EE3AAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B157C

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

Preview Lab → · Contrast checker → · Palette generator →

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