#3918A0#3918A0

#3918A0 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.196 H 282.0°. Best body text is #FFFFFF at 11.59:1 contrast (WCAG AA passes).

Color values

HEX#3918A0
RGBrgb(57, 24, 160)
HSLhsl(255, 74%, 36%)
HSVhsv(255, 85%, 63%)
CMYKcmyk(64.4%, 85%, 0%, 37.3%)
CIE-LABlab(23.87, 50.48, -66.40)
CIE-LCHlch(23.87, 83.41, 307.24°)
OKLaboklab(36.68% 0.0406 -0.1916)
OKLCHoklch(36.68% 0.196 282)
XYZxyz(8.3572, 4.0606, 33.5943)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3918A0 #7FA018
analogous
#183BA0 #3918A0 #7D18A0
triadic
#3918A0 #A03918 #18A039
tetradic
#3918A0 #A0183B #7FA018 #18A07D
square
#3918A0 #A0183B #7FA018 #18A07D
split-complementary
#3918A0 #A07D18 #3BA018
monochromatic
#130836 #26106B #3918A0 #4C20D5 #724EE4

Accessibility & contrast

On white

11.59
#3918A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#3918A0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3918A0
11.59:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3918A0#FFFFFF#000000##FFFFFF
##3918A01.0011.591.8111.59
#FFFFFF11.591.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.591.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA4
Deuteranopia (green-blind)
#00349E
Tritanopia (blue-blind)
#00445F
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #3918a0;
/* rgb */ color: rgb(57, 24, 160);
/* oklch */ color: oklch(36.7% 0.196 282.0);
Tailwind
colors: {
  custom: {
    50: '#7e5cbd',
    500: '#3918a0',
    950: '#000000',
  },
}
SCSS
$custom: #3918a0;
$custom-light: #7e5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3918a0",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 254.559,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36683,
    "c": 0.19581,
    "h": 282
  },
  "luminance": 0.04061
}

Semantic roles & 50–950 ramp

primary
#3918A0
secondary
#A9C64D
accent
#F137C4
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3918A0

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

Preview Lab → · Contrast checker → · Palette generator →

#3918A0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva