#3E1875#3E1875

#3E1875 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.146 H 295.7°. Best body text is #FFFFFF at 13.19:1 contrast (WCAG AA passes).

Color values

HEX#3E1875
RGBrgb(62, 24, 117)
HSLhsl(265, 66%, 28%)
HSVhsv(265, 79%, 46%)
CMYKcmyk(47%, 79.5%, 0%, 54.1%)
CIE-LABlab(19.89, 38.97, -46.04)
CIE-LCHlch(19.89, 60.32, 310.25°)
OKLaboklab(32.7% 0.0634 -0.1319)
OKLCHoklch(32.7% 0.146 295.7)
XYZxyz(5.5233, 2.9616, 17.1068)
Luminance0.0296 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E1875 #4F7518
analogous
#182175 #3E1875 #6C1875
triadic
#3E1875 #753E18 #18753E
tetradic
#3E1875 #751821 #4F7518 #18756C
square
#3E1875 #751821 #4F7518 #18756C
split-complementary
#3E1875 #756C18 #217518
monochromatic
#0D0519 #230E42 #3E1875 #5922A8 #7532D5

Accessibility & contrast

On white

13.19
#3E1875 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3E1875
13.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E1875#FFFFFF#000000##FFFFFF
##3E18751.0013.191.5913.19
#FFFFFF13.191.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003178
Deuteranopia (green-blind)
#002F73
Tritanopia (blue-blind)
#2F3146
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #3e1875;
/* rgb */ color: rgb(62, 24, 117);
/* oklch */ color: oklch(32.7% 0.146 295.7);
Tailwind
colors: {
  custom: {
    50: '#7a599e',
    500: '#3e1875',
    950: '#000000',
  },
}
SCSS
$custom: #3e1875;
$custom-light: #7a599e;
$custom-dark: #000000;
JSON
{
  "hex": "#3e1875",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 117
  },
  "hsl": {
    "h": 264.516,
    "s": 65.957,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32702,
    "c": 0.14636,
    "h": 295.7
  },
  "luminance": 0.02962
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E1875

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

Preview Lab → · Contrast checker → · Palette generator →

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