#3D157B#3D157B

#3D157B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.156 H 293.5°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#3D157B
RGBrgb(61, 21, 123)
HSLhsl(264, 71%, 28%)
HSVhsv(264, 83%, 48%)
CMYKcmyk(50.4%, 82.9%, 0%, 51.8%)
CIE-LABlab(19.88, 41.83, -49.91)
CIE-LCHlch(19.88, 65.12, 309.97°)
OKLaboklab(32.84% 0.0623 -0.1433)
OKLCHoklch(32.84% 0.156 293.5)
XYZxyz(5.7668, 2.9583, 19.0022)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D157B #537B15
analogous
#15207B #3D157B #70157B
triadic
#3D157B #7B3D15 #157B3D
tetradic
#3D157B #7B1520 #537B15 #157B70
square
#3D157B #7B1520 #537B15 #157B70
split-complementary
#3D157B #7B7015 #207B15
monochromatic
#0D041A #230C47 #3D157B #571EAF #732FDB

Accessibility & contrast

On white

13.19
#3D157B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#3D157B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D157B
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D157B#FFFFFF#000000##FFFFFF
##3D157B1.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00317E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#293348
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3d157b;
/* rgb */ color: rgb(61, 21, 123);
/* oklch */ color: oklch(32.8% 0.156 293.5);
Tailwind
colors: {
  custom: {
    50: '#7a58a2',
    500: '#3d157b',
    950: '#000000',
  },
}
SCSS
$custom: #3d157b;
$custom-light: #7a58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3d157b",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 123
  },
  "hsl": {
    "h": 263.529,
    "s": 70.833,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32843,
    "c": 0.15623,
    "h": 293.5
  },
  "luminance": 0.02958
}

Semantic roles & 50–950 ramp

primary
#3D157B
secondary
#83B03B
accent
#EE3AA7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D157B

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

Preview Lab → · Contrast checker → · Palette generator →

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