#3E18A0#3E18A0

#3E18A0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.1% C 0.195 H 284.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#3E18A0
RGBrgb(62, 24, 160)
HSLhsl(257, 74%, 36%)
HSVhsv(257, 85%, 63%)
CMYKcmyk(61.2%, 85%, 0%, 37.3%)
CIE-LABlab(24.37, 50.95, -65.56)
CIE-LCHlch(24.37, 83.03, 307.85°)
OKLaboklab(37.15% 0.0485 -0.189)
OKLCHoklch(37.15% 0.195 284.4)
XYZxyz(8.6565, 4.2149, 33.6083)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3E18A0 #7AA018
analogous
#1836A0 #3E18A0 #8218A0
triadic
#3E18A0 #A03E18 #18A03E
tetradic
#3E18A0 #A01836 #7AA018 #18A082
square
#3E18A0 #A01836 #7AA018 #18A082
split-complementary
#3E18A0 #A08218 #36A018
monochromatic
#150836 #29106B #3E18A0 #5320D5 #784EE4

Accessibility & contrast

On white

11.39
#3E18A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#3E18A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3E18A0
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3E18A0#FFFFFF#000000##FFFFFF
##3E18A01.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#00435F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #3e18a0;
/* rgb */ color: rgb(62, 24, 160);
/* oklch */ color: oklch(37.1% 0.195 284.4);
Tailwind
colors: {
  custom: {
    50: '#815cbd',
    500: '#3e18a0',
    950: '#000000',
  },
}
SCSS
$custom: #3e18a0;
$custom-light: #815cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3e18a0",
  "rgb": {
    "r": 62,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 256.765,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.37145,
    "c": 0.19511,
    "h": 284.4
  },
  "luminance": 0.04215
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3E18A0

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

Preview Lab → · Contrast checker → · Palette generator →

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