#3818A0#3818A0

#3818A0 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.196 H 281.5°. Best body text is #FFFFFF at 11.63:1 contrast (WCAG AA passes).

Color values

HEX#3818A0
RGBrgb(56, 24, 160)
HSLhsl(254, 74%, 36%)
HSVhsv(254, 85%, 63%)
CMYKcmyk(65%, 85%, 0%, 37.3%)
CIE-LABlab(23.78, 50.39, -66.56)
CIE-LCHlch(23.78, 83.48, 307.13°)
OKLaboklab(36.59% 0.039 -0.192)
OKLCHoklch(36.59% 0.196 281.5)
XYZxyz(8.3007, 4.0315, 33.5916)
Luminance0.0403 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3818A0 #80A018
analogous
#183CA0 #3818A0 #7C18A0
triadic
#3818A0 #A03818 #18A038
tetradic
#3818A0 #A0183C #80A018 #18A07C
square
#3818A0 #A0183C #80A018 #18A07C
split-complementary
#3818A0 #A07C18 #3CA018
monochromatic
#130836 #25106B #3818A0 #4B20D5 #714EE4

Accessibility & contrast

On white

11.63
#3818A0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3818A0
11.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3818A0#FFFFFF#000000##FFFFFF
##3818A01.0011.631.8111.63
#FFFFFF11.631.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.631.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: #3818a0;
/* rgb */ color: rgb(56, 24, 160);
/* oklch */ color: oklch(36.6% 0.196 281.5);
Tailwind
colors: {
  custom: {
    50: '#7e5cbd',
    500: '#3818a0',
    950: '#000000',
  },
}
SCSS
$custom: #3818a0;
$custom-light: #7e5cbd;
$custom-dark: #000000;
JSON
{
  "hex": "#3818a0",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 160
  },
  "hsl": {
    "h": 254.118,
    "s": 73.913,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36594,
    "c": 0.19597,
    "h": 281.5
  },
  "luminance": 0.04032
}

Semantic roles & 50–950 ramp

primary
#3818A0
secondary
#AAC64D
accent
#F137C5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #3818A0

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

Preview Lab → · Contrast checker → · Palette generator →

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