#3D157E#3D157E

#3D157E is a dark, vivid violet. Relative luminance 0.030; OKLCH L 33.1% C 0.160 H 292.6°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#3D157E
RGBrgb(61, 21, 126)
HSLhsl(263, 71%, 29%)
HSVhsv(263, 83%, 49%)
CMYKcmyk(51.6%, 83.3%, 0%, 50.6%)
CIE-LABlab(20.18, 42.66, -51.32)
CIE-LCHlch(20.18, 66.73, 309.73°)
OKLaboklab(33.15% 0.0612 -0.1474)
OKLCHoklch(33.15% 0.16 292.6)
XYZxyz(5.9575, 3.0346, 20.0065)
Luminance0.0303 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3D157E #567E15
analogous
#15227E #3D157E #72157E
triadic
#3D157E #7E3D15 #157E3D
tetradic
#3D157E #7E1522 #567E15 #157E72
square
#3D157E #7E1522 #567E15 #157E72
split-complementary
#3D157E #7E7215 #227E15
monochromatic
#0D041A #240C4A #3D157E #561EB2 #7231DD

Accessibility & contrast

On white

13.07
#3D157E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#3D157E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3D157E
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3D157E#FFFFFF#000000##FFFFFF
##3D157E1.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003281
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#27344A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #3d157e;
/* rgb */ color: rgb(61, 21, 126);
/* oklch */ color: oklch(33.1% 0.160 292.6);
Tailwind
colors: {
  custom: {
    50: '#7a58a4',
    500: '#3d157e',
    950: '#000000',
  },
}
SCSS
$custom: #3d157e;
$custom-light: #7a58a4;
$custom-dark: #000000;
JSON
{
  "hex": "#3d157e",
  "rgb": {
    "r": 61,
    "g": 21,
    "b": 126
  },
  "hsl": {
    "h": 262.857,
    "s": 71.429,
    "l": 28.824
  },
  "oklch": {
    "l": 0.33147,
    "c": 0.15962,
    "h": 292.6
  },
  "luminance": 0.03035
}

Semantic roles & 50–950 ramp

primary
#3D157E
secondary
#86B33C
accent
#EE3AA9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3D157E

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

Preview Lab → · Contrast checker → · Palette generator →

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