#3E156C#3E156C

#3E156C is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.5% C 0.139 H 299.6°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#3E156C
RGBrgb(62, 21, 108)
HSLhsl(268, 67%, 25%)
HSVhsv(268, 81%, 42%)
CMYKcmyk(42.6%, 80.6%, 0%, 57.6%)
CIE-LABlab(18.55, 37.92, -42.40)
CIE-LCHlch(18.55, 56.88, 311.81°)
OKLaboklab(31.51% 0.0687 -0.1212)
OKLCHoklch(31.51% 0.139 299.6)
XYZxyz(4.9609, 2.6431, 14.4333)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E156C #436C15
analogous
#15176C #3E156C #69156C
triadic
#3E156C #6C3E15 #156C3E
tetradic
#3E156C #6C1517 #436C15 #156C69
square
#3E156C #6C1517 #436C15 #156C69
split-complementary
#3E156C #6C6915 #176C15
monochromatic
#0F051A #210B39 #3E156C #5B1F9F #7929D2

Accessibility & contrast

On white

13.74
#3E156C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#3E156C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E156C
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E156C#FFFFFF#000000##FFFFFF
##3E156C1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6E
Deuteranopia (green-blind)
#002C6A
Tritanopia (blue-blind)
#332C40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e156c;
/* rgb */ color: rgb(62, 21, 108);
/* oklch */ color: oklch(31.5% 0.139 299.6);
Tailwind
colors: {
  custom: {
    50: '#795797',
    500: '#3e156c',
    950: '#000000',
  },
}
SCSS
$custom: #3e156c;
$custom-light: #795797;
$custom-dark: #000000;
JSON
{
  "hex": "#3e156c",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 108
  },
  "hsl": {
    "h": 268.276,
    "s": 67.442,
    "l": 25.294
  },
  "oklch": {
    "l": 0.31506,
    "c": 0.13934,
    "h": 299.6
  },
  "luminance": 0.02643
}

Semantic roles & 50–950 ramp

primary
#3E156C
secondary
#71A33A
accent
#EA3D99
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030D
muted
#7B787E

Preview Lab

Preview with #3E156C

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

Preview Lab → · Contrast checker → · Palette generator →

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