#3918A1#3918A1

#3918A1 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.8% C 0.197 H 281.8°. Best body text is #FFFFFF at 11.54:1 contrast (WCAG AA passes).

Color values

HEX#3918A1
RGBrgb(57, 24, 161)
HSLhsl(254, 74%, 36%)
HSVhsv(254, 85%, 63%)
CMYKcmyk(64.6%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.99, 50.76, -66.82)
CIE-LCHlch(23.99, 83.92, 307.22°)
OKLaboklab(36.8% 0.0402 -0.1928)
OKLCHoklch(36.8% 0.197 281.8)
XYZxyz(8.4450, 4.0957, 34.0568)
Luminance0.0410 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3918A1 #80A118
analogous
#183BA1 #3918A1 #7E18A1
triadic
#3918A1 #A13918 #18A139
tetradic
#3918A1 #A1183B #80A118 #18A17E
square
#3918A1 #A1183B #80A118 #18A17E
split-complementary
#3918A1 #A17E18 #3BA118
monochromatic
#130836 #26106C #3918A1 #4C20D6 #734FE5

Accessibility & contrast

On white

11.54
#3918A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#3918A1 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3918A1
11.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3918A1#FFFFFF#000000##FFFFFF
##3918A11.0011.541.8211.54
#FFFFFF11.541.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.541.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3918a1;
/* rgb */ color: rgb(57, 24, 161);
/* oklch */ color: oklch(36.8% 0.197 281.8);
Tailwind
colors: {
  custom: {
    50: '#7f5cbe',
    500: '#3918a1',
    950: '#000000',
  },
}
SCSS
$custom: #3918a1;
$custom-light: #7f5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3918a1",
  "rgb": {
    "r": 57,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 254.453,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36795,
    "c": 0.19693,
    "h": 281.8
  },
  "luminance": 0.04096
}

Semantic roles & 50–950 ramp

primary
#3918A1
secondary
#AAC74E
accent
#F137C4
background
#F8F5FB
surface
#F0E9F7
border
#CBC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3918A1

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

Preview Lab → · Contrast checker → · Palette generator →

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