#3E147B#3E147B

#3E147B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.9% C 0.157 H 294.3°. Best body text is #FFFFFF at 13.20:1 contrast (WCAG AA passes).

Color values

HEX#3E147B
RGBrgb(62, 20, 123)
HSLhsl(264, 72%, 28%)
HSVhsv(264, 84%, 48%)
CMYKcmyk(49.6%, 83.7%, 0%, 51.8%)
CIE-LABlab(19.86, 42.40, -49.93)
CIE-LCHlch(19.86, 65.51, 310.34°)
OKLaboklab(32.86% 0.0647 -0.1433)
OKLCHoklch(32.86% 0.157 294.3)
XYZxyz(5.8109, 2.9543, 18.9991)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E147B #517B14
analogous
#141D7B #3E147B #71147B
triadic
#3E147B #7B3E14 #147B3E
tetradic
#3E147B #7B141D #517B14 #147B71
square
#3E147B #7B141D #517B14 #147B71
split-complementary
#3E147B #7B7114 #1D7B14
monochromatic
#0D041A #230B46 #3E147B #591DB0 #742DDD

Accessibility & contrast

On white

13.20
#3E147B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E147B
13.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E147B#FFFFFF#000000##FFFFFF
##3E147B1.0013.201.5913.20
#FFFFFF13.201.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3e147b;
/* rgb */ color: rgb(62, 20, 123);
/* oklch */ color: oklch(32.9% 0.157 294.3);
Tailwind
colors: {
  custom: {
    50: '#7b58a2',
    500: '#3e147b',
    950: '#000000',
  },
}
SCSS
$custom: #3e147b;
$custom-light: #7b58a2;
$custom-dark: #000000;
JSON
{
  "hex": "#3e147b",
  "rgb": {
    "r": 62,
    "g": 20,
    "b": 123
  },
  "hsl": {
    "h": 264.466,
    "s": 72.028,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32861,
    "c": 0.15722,
    "h": 294.3
  },
  "luminance": 0.02955
}

Semantic roles & 50–950 ramp

primary
#3E147B
secondary
#80B13A
accent
#EF39A5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #3E147B

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

Preview Lab → · Contrast checker → · Palette generator →

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