#3816B4#3816B4

#3816B4 is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.7% C 0.219 H 278.5°. Best body text is #FFFFFF at 10.81:1 contrast (WCAG AA passes).

Color values

HEX#3816B4
RGBrgb(56, 22, 180)
HSLhsl(253, 78%, 40%)
HSVhsv(253, 88%, 71%)
CMYKcmyk(68.9%, 87.8%, 0%, 29.4%)
CIE-LABlab(25.89, 56.69, -75.13)
CIE-LCHlch(25.89, 94.12, 307.04°)
OKLaboklab(38.72% 0.0325 -0.2169)
OKLCHoklch(38.72% 0.219 278.5)
XYZxyz(10.1534, 4.7090, 43.5450)
Luminance0.0471 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3816B4 #92B416
analogous
#1643B4 #3816B4 #8716B4
triadic
#3816B4 #B43816 #16B438
tetradic
#3816B4 #B41643 #92B416 #16B487
square
#3816B4 #B41643 #92B416 #16B487
split-complementary
#3816B4 #B48716 #43B416
monochromatic
#160947 #270F7D #3816B4 #4D23E4 #795AEB

Accessibility & contrast

On white

10.81
#3816B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#3816B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #3816B4
10.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3816B4#FFFFFF#000000##FFFFFF
##3816B41.0010.811.9410.81
#FFFFFF10.811.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.811.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #3816b4;
/* rgb */ color: rgb(56, 22, 180);
/* oklch */ color: oklch(38.7% 0.219 278.5);
Tailwind
colors: {
  custom: {
    50: '#825dcc',
    500: '#3816b4',
    950: '#000000',
  },
}
SCSS
$custom: #3816b4;
$custom-light: #825dcc;
$custom-dark: #000000;
JSON
{
  "hex": "#3816b4",
  "rgb": {
    "r": 56,
    "g": 22,
    "b": 180
  },
  "hsl": {
    "h": 252.911,
    "s": 78.218,
    "l": 39.608
  },
  "oklch": {
    "l": 0.38719,
    "c": 0.21932,
    "h": 278.5
  },
  "luminance": 0.0471
}

Semantic roles & 50–950 ramp

primary
#3816B4
secondary
#B5CE58
accent
#F533CB
background
#F8F5FC
surface
#F0E9F9
border
#CBC5D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #3816B4

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

Preview Lab → · Contrast checker → · Palette generator →

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