#3E1876#3E1876

#3E1876 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.148 H 295.3°. Best body text is #FFFFFF at 13.15:1 contrast (WCAG AA passes).

Color values

HEX#3E1876
RGBrgb(62, 24, 118)
HSLhsl(264, 66%, 28%)
HSVhsv(264, 80%, 46%)
CMYKcmyk(47.5%, 79.7%, 0%, 53.7%)
CIE-LABlab(19.98, 39.25, -46.53)
CIE-LCHlch(19.98, 60.87, 310.15°)
OKLaboklab(32.8% 0.0631 -0.1333)
OKLCHoklch(32.8% 0.148 295.3)
XYZxyz(5.5824, 2.9853, 17.4181)
Luminance0.0299 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1876 #507618
analogous
#182176 #3E1876 #6D1876
triadic
#3E1876 #763E18 #18763E
tetradic
#3E1876 #761821 #507618 #18766D
square
#3E1876 #761821 #507618 #18766D
split-complementary
#3E1876 #766D18 #217618
monochromatic
#0D0519 #230E43 #3E1876 #5922A9 #7533D5

Accessibility & contrast

On white

13.15
#3E1876 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#3E1876 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E1876
13.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1876#FFFFFF#000000##FFFFFF
##3E18761.0013.151.6013.15
#FFFFFF13.151.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002F74
Tritanopia (blue-blind)
#2E3246
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1876;
/* rgb */ color: rgb(62, 24, 118);
/* oklch */ color: oklch(32.8% 0.148 295.3);
Tailwind
colors: {
  custom: {
    50: '#7a5a9e',
    500: '#3e1876',
    950: '#000000',
  },
}
SCSS
$custom: #3e1876;
$custom-light: #7a5a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1876",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 118
  },
  "hsl": {
    "h": 264.255,
    "s": 66.197,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32798,
    "c": 0.14752,
    "h": 295.3
  },
  "luminance": 0.02985
}

Semantic roles & 50–950 ramp

primary
#3E1876
secondary
#7FAB3F
accent
#E93FA4
background
#F7F5F9
surface
#EEE9F2
border
#C9C5CC
text
#0A040E
muted
#7C797E

Preview Lab

Preview with #3E1876

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

Preview Lab → · Contrast checker → · Palette generator →

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