#3E156D#3E156D

#3E156D is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.140 H 299.2°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#3E156D
RGBrgb(62, 21, 109)
HSLhsl(268, 68%, 25%)
HSVhsv(268, 81%, 43%)
CMYKcmyk(43.1%, 80.7%, 0%, 57.3%)
CIE-LABlab(18.65, 38.19, -42.90)
CIE-LCHlch(18.65, 57.43, 311.67°)
OKLaboklab(31.6% 0.0684 -0.1227)
OKLCHoklch(31.6% 0.14 299.2)
XYZxyz(5.0144, 2.6645, 14.7152)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E156D #446D15
analogous
#15186D #3E156D #6A156D
triadic
#3E156D #6D3E15 #156D3E
tetradic
#3E156D #6D1518 #446D15 #156D6A
square
#3E156D #6D1518 #446D15 #156D6A
split-complementary
#3E156D #6D6A15 #186D15
monochromatic
#0F051A #210B3A #3E156D #5B1FA0 #7829D4

Accessibility & contrast

On white

13.70
#3E156D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E156D
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E156D#FFFFFF#000000##FFFFFF
##3E156D1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6F
Deuteranopia (green-blind)
#002D6B
Tritanopia (blue-blind)
#332D40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #3e156d;
/* rgb */ color: rgb(62, 21, 109);
/* oklch */ color: oklch(31.6% 0.140 299.2);
Tailwind
colors: {
  custom: {
    50: '#795898',
    500: '#3e156d',
    950: '#000000',
  },
}
SCSS
$custom: #3e156d;
$custom-light: #795898;
$custom-dark: #000000;
JSON
{
  "hex": "#3e156d",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 109
  },
  "hsl": {
    "h": 267.955,
    "s": 67.692,
    "l": 25.49
  },
  "oklch": {
    "l": 0.316,
    "c": 0.14047,
    "h": 299.2
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#3E156D
secondary
#72A33A
accent
#EB3D9A
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#09030E
muted
#7B787E

Preview Lab

Preview with #3E156D

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

Preview Lab → · Contrast checker → · Palette generator →

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