#3E1874#3E1874

#3E1874 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.6% C 0.145 H 296.0°. Best body text is #FFFFFF at 13.23:1 contrast (WCAG AA passes).

Color values

HEX#3E1874
RGBrgb(62, 24, 116)
HSLhsl(265, 66%, 27%)
HSVhsv(265, 79%, 45%)
CMYKcmyk(46.6%, 79.3%, 0%, 54.5%)
CIE-LABlab(19.79, 38.69, -45.55)
CIE-LCHlch(19.79, 59.77, 310.35°)
OKLaboklab(32.61% 0.0637 -0.1305)
OKLCHoklch(32.61% 0.145 296)
XYZxyz(5.4648, 2.9382, 16.7988)
Luminance0.0294 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1874 #4E7418
analogous
#182074 #3E1874 #6C1874
triadic
#3E1874 #743E18 #18743E
tetradic
#3E1874 #741820 #4E7418 #18746C
square
#3E1874 #741820 #4E7418 #18746C
split-complementary
#3E1874 #746C18 #207418
monochromatic
#0E0519 #230E41 #3E1874 #5922A7 #7532D5

Accessibility & contrast

On white

13.23
#3E1874 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1874
13.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1874#FFFFFF#000000##FFFFFF
##3E18741.0013.231.5913.23
#FFFFFF13.231.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002F72
Tritanopia (blue-blind)
#2F3145
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1874;
/* rgb */ color: rgb(62, 24, 116);
/* oklch */ color: oklch(32.6% 0.145 296.0);
Tailwind
colors: {
  custom: {
    50: '#79599d',
    500: '#3e1874',
    950: '#000000',
  },
}
SCSS
$custom: #3e1874;
$custom-light: #79599d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1874",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 116
  },
  "hsl": {
    "h": 264.783,
    "s": 65.714,
    "l": 27.451
  },
  "oklch": {
    "l": 0.32606,
    "c": 0.14519,
    "h": 296
  },
  "luminance": 0.02938
}

Semantic roles & 50–950 ramp

primary
#3E1874
secondary
#7DA93F
accent
#E93FA3
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1874

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

Preview Lab → · Contrast checker → · Palette generator →

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