#3E156E#3E156E

#3E156E is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.7% C 0.142 H 298.8°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#3E156E
RGBrgb(62, 21, 110)
HSLhsl(268, 68%, 26%)
HSVhsv(268, 81%, 43%)
CMYKcmyk(43.6%, 80.9%, 0%, 56.9%)
CIE-LABlab(18.74, 38.45, -43.40)
CIE-LCHlch(18.74, 57.98, 311.54°)
OKLaboklab(31.69% 0.0681 -0.1241)
OKLCHoklch(31.69% 0.142 298.8)
XYZxyz(5.0685, 2.6862, 15.0003)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E156E #456E15
analogous
#15196E #3E156E #6A156E
triadic
#3E156E #6E3E15 #156E3E
tetradic
#3E156E #6E1519 #456E15 #156E6A
square
#3E156E #6E1519 #456E15 #156E6A
split-complementary
#3E156E #6E6A15 #196E15
monochromatic
#0E051A #210B3B #3E156E #5B1FA1 #7829D5

Accessibility & contrast

On white

13.66
#3E156E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#3E156E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E156E
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E156E#FFFFFF#000000##FFFFFF
##3E156E1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#322D41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #3e156e;
/* rgb */ color: rgb(62, 21, 110);
/* oklch */ color: oklch(31.7% 0.142 298.8);
Tailwind
colors: {
  custom: {
    50: '#795898',
    500: '#3e156e',
    950: '#000000',
  },
}
SCSS
$custom: #3e156e;
$custom-light: #795898;
$custom-dark: #000000;
JSON
{
  "hex": "#3e156e",
  "rgb": {
    "r": 62,
    "g": 21,
    "b": 110
  },
  "hsl": {
    "h": 267.64,
    "s": 67.939,
    "l": 25.686
  },
  "oklch": {
    "l": 0.31694,
    "c": 0.14161,
    "h": 298.8
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#3E156E
secondary
#74A43A
accent
#EB3D9B
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A030E
muted
#7C787E

Preview Lab

Preview with #3E156E

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

Preview Lab → · Contrast checker → · Palette generator →

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