#381AB4#381AB4

#381AB4 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.0% C 0.217 H 278.3°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#381AB4
RGBrgb(56, 26, 180)
HSLhsl(252, 75%, 40%)
HSVhsv(252, 86%, 71%)
CMYKcmyk(68.9%, 85.6%, 0%, 29.4%)
CIE-LABlab(26.37, 55.24, -74.33)
CIE-LCHlch(26.37, 92.61, 306.62°)
OKLaboklab(39.05% 0.0312 -0.2146)
OKLCHoklch(39.05% 0.217 278.3)
XYZxyz(10.2358, 4.8739, 43.5725)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381AB4 #96B41A
analogous
#1A49B4 #381AB4 #851AB4
triadic
#381AB4 #B4381A #1AB438
tetradic
#381AB4 #B41A49 #96B41A #1AB485
square
#381AB4 #B41A49 #96B41A #1AB485
split-complementary
#381AB4 #B4851A #49B41A
monochromatic
#170B49 #27127F #381AB4 #4E2BE0 #7B60E8

Accessibility & contrast

On white

10.63
#381AB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#381AB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381AB4
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381AB4#FFFFFF#000000##FFFFFF
##381AB41.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381ab4;
/* rgb */ color: rgb(56, 26, 180);
/* oklch */ color: oklch(39.0% 0.217 278.3);
Tailwind
colors: {
  custom: {
    50: '#825ecc',
    500: '#381ab4',
    950: '#000000',
  },
}
SCSS
$custom: #381ab4;
$custom-light: #825ecc;
$custom-dark: #000000;
JSON
{
  "hex": "#381ab4",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 180
  },
  "hsl": {
    "h": 251.688,
    "s": 74.757,
    "l": 40.392
  },
  "oklch": {
    "l": 0.39048,
    "c": 0.2169,
    "h": 278.3
  },
  "luminance": 0.04875
}

Semantic roles & 50–950 ramp

primary
#381AB4
secondary
#B7CC5D
accent
#F136CD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #381AB4

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

Preview Lab → · Contrast checker → · Palette generator →

#381AB4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva