#3E1873#3E1873

#3E1873 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.5% C 0.144 H 296.4°. Best body text is #FFFFFF at 13.27:1 contrast (WCAG AA passes).

Color values

HEX#3E1873
RGBrgb(62, 24, 115)
HSLhsl(265, 65%, 27%)
HSVhsv(265, 79%, 45%)
CMYKcmyk(46.1%, 79.1%, 0%, 54.9%)
CIE-LABlab(19.70, 38.42, -45.06)
CIE-LCHlch(19.70, 59.21, 310.45°)
OKLaboklab(32.51% 0.064 -0.129)
OKLCHoklch(32.51% 0.144 296.4)
XYZxyz(5.4069, 2.9151, 16.4941)
Luminance0.0291 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1873 #4D7318
analogous
#181F73 #3E1873 #6C1873
triadic
#3E1873 #733E18 #18733E
tetradic
#3E1873 #73181F #4D7318 #18736C
square
#3E1873 #73181F #4D7318 #18736C
split-complementary
#3E1873 #736C18 #1F7318
monochromatic
#0E0519 #230D40 #3E1873 #5923A6 #7531D4

Accessibility & contrast

On white

13.27
#3E1873 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#3E1873 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1873
13.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1873#FFFFFF#000000##FFFFFF
##3E18731.0013.271.5813.27
#FFFFFF13.271.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003076
Deuteranopia (green-blind)
#002E71
Tritanopia (blue-blind)
#303044
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1873;
/* rgb */ color: rgb(62, 24, 115);
/* oklch */ color: oklch(32.5% 0.144 296.4);
Tailwind
colors: {
  custom: {
    50: '#79599c',
    500: '#3e1873',
    950: '#000000',
  },
}
SCSS
$custom: #3e1873;
$custom-light: #79599c;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1873",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 115
  },
  "hsl": {
    "h": 265.055,
    "s": 65.468,
    "l": 27.255
  },
  "oklch": {
    "l": 0.32511,
    "c": 0.14403,
    "h": 296.4
  },
  "luminance": 0.02915
}

Semantic roles & 50–950 ramp

primary
#3E1873
secondary
#7CA83F
accent
#E83FA2
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1873

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

Preview Lab → · Contrast checker → · Palette generator →

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