#3E1674#3E1674

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

Color values

HEX#3E1674
RGBrgb(62, 22, 116)
HSLhsl(266, 68%, 27%)
HSVhsv(266, 81%, 45%)
CMYKcmyk(46.6%, 81%, 0%, 54.5%)
CIE-LABlab(19.47, 39.63, -46.09)
CIE-LCHlch(19.47, 60.78, 310.69°)
OKLaboklab(32.38% 0.0654 -0.132)
OKLCHoklch(32.38% 0.147 296.4)
XYZxyz(5.4251, 2.8588, 16.7856)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1674 #4C7416
analogous
#161D74 #3E1674 #6D1674
triadic
#3E1674 #743E16 #16743E
tetradic
#3E1674 #74161D #4C7416 #16746D
square
#3E1674 #74161D #4C7416 #16746D
split-complementary
#3E1674 #746D16 #1D7416
monochromatic
#0E051A #230C41 #3E1674 #5920A7 #762DD7

Accessibility & contrast

On white

13.36
#3E1674 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#3E1674 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1674
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1674#FFFFFF#000000##FFFFFF
##3E16741.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003077
Deuteranopia (green-blind)
#002E72
Tritanopia (blue-blind)
#2F3045
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #3e1674;
/* rgb */ color: rgb(62, 22, 116);
/* oklch */ color: oklch(32.4% 0.147 296.4);
Tailwind
colors: {
  custom: {
    50: '#7a589d',
    500: '#3e1674',
    950: '#000000',
  },
}
SCSS
$custom: #3e1674;
$custom-light: #7a589d;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1674",
  "rgb": {
    "r": 62,
    "g": 22,
    "b": 116
  },
  "hsl": {
    "h": 265.532,
    "s": 68.116,
    "l": 27.059
  },
  "oklch": {
    "l": 0.32378,
    "c": 0.14736,
    "h": 296.4
  },
  "luminance": 0.02859
}

Semantic roles & 50–950 ramp

primary
#3E1674
secondary
#7BAA3C
accent
#EB3DA1
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1674

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

Preview Lab → · Contrast checker → · Palette generator →

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