#3B157F#3B157F

#3B157F is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.0% C 0.161 H 291.0°. Best body text is #FFFFFF at 13.13:1 contrast (WCAG AA passes).

Color values

HEX#3B157F
RGBrgb(59, 21, 127)
HSLhsl(262, 72%, 29%)
HSVhsv(262, 83%, 50%)
CMYKcmyk(53.5%, 83.5%, 0%, 50.2%)
CIE-LABlab(20.04, 42.66, -52.20)
CIE-LCHlch(20.04, 67.42, 309.26°)
OKLaboklab(33.02% 0.0576 -0.15)
OKLCHoklch(33.02% 0.161 291)
XYZxyz(5.9015, 2.9982, 20.3423)
Luminance0.0300 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3B157F #597F15
analogous
#15247F #3B157F #70157F
triadic
#3B157F #7F3B15 #157F3B
tetradic
#3B157F #7F1524 #597F15 #157F70
square
#3B157F #7F1524 #597F15 #157F70
split-complementary
#3B157F #7F7015 #247F15
monochromatic
#0C041A #230C4A #3B157F #531EB4 #6F31DD

Accessibility & contrast

On white

13.13
#3B157F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3B157F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3B157F
13.13:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3B157F#FFFFFF#000000##FFFFFF
##3B157F1.0013.131.6013.13
#FFFFFF13.131.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.131.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003282
Deuteranopia (green-blind)
#002E7D
Tritanopia (blue-blind)
#22344B
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3b157f;
/* rgb */ color: rgb(59, 21, 127);
/* oklch */ color: oklch(33.0% 0.161 291.0);
Tailwind
colors: {
  custom: {
    50: '#7a58a5',
    500: '#3b157f',
    950: '#000000',
  },
}
SCSS
$custom: #3b157f;
$custom-light: #7a58a5;
$custom-dark: #000000;
JSON
{
  "hex": "#3b157f",
  "rgb": {
    "r": 59,
    "g": 21,
    "b": 127
  },
  "hsl": {
    "h": 261.509,
    "s": 71.622,
    "l": 29.02
  },
  "oklch": {
    "l": 0.33021,
    "c": 0.16072,
    "h": 291
  },
  "luminance": 0.02998
}

Semantic roles & 50–950 ramp

primary
#3B157F
secondary
#89B43C
accent
#EE39AE
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3B157F

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

Preview Lab → · Contrast checker → · Palette generator →

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