#3E18A1#3E18A1

#3E18A1 is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.3% C 0.196 H 284.2°. Best body text is #FFFFFF at 11.35:1 contrast (WCAG AA passes).

Color values

HEX#3E18A1
RGBrgb(62, 24, 161)
HSLhsl(257, 74%, 36%)
HSVhsv(257, 85%, 63%)
CMYKcmyk(61.5%, 85.1%, 0%, 36.9%)
CIE-LABlab(24.48, 51.23, -65.99)
CIE-LCHlch(24.48, 83.54, 307.82°)
OKLaboklab(37.26% 0.0482 -0.1902)
OKLCHoklch(37.26% 0.196 284.2)
XYZxyz(8.7443, 4.2500, 34.0709)
Luminance0.0425 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E18A1 #7BA118
analogous
#1837A1 #3E18A1 #8318A1
triadic
#3E18A1 #A13E18 #18A13E
tetradic
#3E18A1 #A11837 #7BA118 #18A183
square
#3E18A1 #A11837 #7BA118 #18A183
split-complementary
#3E18A1 #A18318 #37A118
monochromatic
#150836 #29106C #3E18A1 #5320D6 #784FE5

Accessibility & contrast

On white

11.35
#3E18A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#3E18A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E18A1
11.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E18A1#FFFFFF#000000##FFFFFF
##3E18A11.0011.351.8511.35
#FFFFFF11.351.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e18a1;
/* rgb */ color: rgb(62, 24, 161);
/* oklch */ color: oklch(37.3% 0.196 284.2);
Tailwind
colors: {
  custom: {
    50: '#815cbe',
    500: '#3e18a1',
    950: '#000000',
  },
}
SCSS
$custom: #3e18a1;
$custom-light: #815cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3e18a1",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 256.642,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.37255,
    "c": 0.19621,
    "h": 284.2
  },
  "luminance": 0.04251
}

Semantic roles & 50–950 ramp

primary
#3E18A1
secondary
#A5C74E
accent
#F137BD
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0C0412
muted
#7D7981

Preview Lab

Preview with #3E18A1

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

Preview Lab → · Contrast checker → · Palette generator →

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