#3818A1#3818A1

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

Color values

HEX#3818A1
RGBrgb(56, 24, 161)
HSLhsl(254, 74%, 36%)
HSVhsv(254, 85%, 63%)
CMYKcmyk(65.2%, 85.1%, 0%, 36.9%)
CIE-LABlab(23.89, 50.67, -66.98)
CIE-LCHlch(23.89, 83.99, 307.11°)
OKLaboklab(36.71% 0.0386 -0.1933)
OKLCHoklch(36.71% 0.197 281.3)
XYZxyz(8.3885, 4.0666, 34.0542)
Luminance0.0407 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3818A1 #81A118
analogous
#183CA1 #3818A1 #7D18A1
triadic
#3818A1 #A13818 #18A138
tetradic
#3818A1 #A1183C #81A118 #18A17D
square
#3818A1 #A1183C #81A118 #18A17D
split-complementary
#3818A1 #A17D18 #3CA118
monochromatic
#130836 #25106C #3818A1 #4B20D6 #724FE5

Accessibility & contrast

On white

11.58
#3818A1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #3818A1
11.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3818A1#FFFFFF#000000##FFFFFF
##3818A11.0011.581.8111.58
#FFFFFF11.581.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.581.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: #3818a1;
/* rgb */ color: rgb(56, 24, 161);
/* oklch */ color: oklch(36.7% 0.197 281.3);
Tailwind
colors: {
  custom: {
    50: '#7e5cbe',
    500: '#3818a1',
    950: '#000000',
  },
}
SCSS
$custom: #3818a1;
$custom-light: #7e5cbe;
$custom-dark: #000000;
JSON
{
  "hex": "#3818a1",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 161
  },
  "hsl": {
    "h": 254.015,
    "s": 74.054,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36707,
    "c": 0.19709,
    "h": 281.3
  },
  "luminance": 0.04067
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #3818A1

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

Preview Lab → · Contrast checker → · Palette generator →

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