#3818B4#3818B4

#3818B4 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.9% C 0.218 H 278.4°. Best body text is #FFFFFF at 10.73:1 contrast (WCAG AA passes).

Color values

HEX#3818B4
RGBrgb(56, 24, 180)
HSLhsl(252, 76%, 40%)
HSVhsv(252, 87%, 71%)
CMYKcmyk(68.9%, 86.7%, 0%, 29.4%)
CIE-LABlab(26.12, 55.99, -74.74)
CIE-LCHlch(26.12, 93.38, 306.84°)
OKLaboklab(38.88% 0.0319 -0.2158)
OKLCHoklch(38.88% 0.218 278.4)
XYZxyz(10.1931, 4.7884, 43.5583)
Luminance0.0479 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3818B4 #94B418
analogous
#1846B4 #3818B4 #8618B4
triadic
#3818B4 #B43818 #18B438
tetradic
#3818B4 #B41846 #94B418 #18B486
square
#3818B4 #B41846 #94B418 #18B486
split-complementary
#3818B4 #B48618 #46B418
monochromatic
#160A48 #27117E #3818B4 #4D27E2 #7A5DE9

Accessibility & contrast

On white

10.73
#3818B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#3818B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3818B4
10.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3818B4#FFFFFF#000000##FFFFFF
##3818B41.0010.731.9610.73
#FFFFFF10.731.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B8
Deuteranopia (green-blind)
#0037B1
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #3818b4;
/* rgb */ color: rgb(56, 24, 180);
/* oklch */ color: oklch(38.9% 0.218 278.4);
Tailwind
colors: {
  custom: {
    50: '#825dcc',
    500: '#3818b4',
    950: '#000000',
  },
}
SCSS
$custom: #3818b4;
$custom-light: #825dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3818b4",
  "rgb": {
    "r": 56,
    "g": 24,
    "b": 180
  },
  "hsl": {
    "h": 252.308,
    "s": 76.471,
    "l": 40
  },
  "oklch": {
    "l": 0.38878,
    "c": 0.21814,
    "h": 278.4
  },
  "luminance": 0.04789
}

Semantic roles & 50–950 ramp

primary
#3818B4
secondary
#B6CD5B
accent
#F335CC
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3818B4

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

Preview Lab → · Contrast checker → · Palette generator →

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