#3B157B#3B157B

#3B157B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.156 H 292.2°. Best body text is #FFFFFF at 13.30:1 contrast (WCAG AA passes).

Color values

HEX#3B157B
RGBrgb(59, 21, 123)
HSLhsl(262, 71%, 28%)
HSVhsv(262, 83%, 48%)
CMYKcmyk(52%, 82.9%, 0%, 51.8%)
CIE-LABlab(19.62, 41.54, -50.34)
CIE-LCHlch(19.62, 65.27, 309.53°)
OKLaboklab(32.61% 0.059 -0.1446)
OKLCHoklch(32.61% 0.156 292.2)
XYZxyz(5.6459, 2.8960, 18.9965)
Luminance0.0290 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B157B #557B15
analogous
#15227B #3B157B #6E157B
triadic
#3B157B #7B3B15 #157B3B
tetradic
#3B157B #7B1522 #557B15 #157B6E
square
#3B157B #7B1522 #557B15 #157B6E
split-complementary
#3B157B #7B6E15 #227B15
monochromatic
#0D041A #220C47 #3B157B #541EAF #6F2FDB

Accessibility & contrast

On white

13.30
#3B157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3B157B
13.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B157B#FFFFFF#000000##FFFFFF
##3B157B1.0013.301.5813.30
#FFFFFF13.301.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002D79
Tritanopia (blue-blind)
#253348
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3b157b;
/* rgb */ color: rgb(59, 21, 123);
/* oklch */ color: oklch(32.6% 0.156 292.2);
Tailwind
colors: {
  custom: {
    50: '#7958a2',
    500: '#3b157b',
    950: '#000000',
  },
}
SCSS
$custom: #3b157b;
$custom-light: #7958a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3b157b",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 262.353,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.3261,
    "c": 0.15616,
    "h": 292.2
  },
  "luminance": 0.02896
}

Semantic roles & 50–950 ramp

primary
#3B157B
secondary
#85B03B
accent
#EE3AAB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B157B

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

Preview Lab → · Contrast checker → · Palette generator →

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