#381CAD#381CAD

#381CAD is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.4% C 0.208 H 279.1°. Best body text is #FFFFFF at 10.84:1 contrast (WCAG AA passes).

Color values

HEX#381CAD
RGBrgb(56, 28, 173)
HSLhsl(252, 72%, 39%)
HSVhsv(252, 84%, 68%)
CMYKcmyk(67.6%, 83.8%, 0%, 32.2%)
CIE-LABlab(25.83, 52.46, -71.04)
CIE-LCHlch(25.83, 88.31, 306.44°)
OKLaboklab(38.44% 0.0328 -0.2051)
OKLCHoklch(38.44% 0.208 279.1)
XYZxyz(9.5865, 4.6876, 39.9267)
Luminance0.0469 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CAD #91AD1C
analogous
#1C49AD #381CAD #811CAD
triadic
#381CAD #AD381C #1CAD38
tetradic
#381CAD #AD1C49 #91AD1C #1CAD81
square
#381CAD #AD1C49 #91AD1C #1CAD81
split-complementary
#381CAD #AD811C #49AD1C
monochromatic
#160B44 #271378 #381CAD #4C2ADC #785EE5

Accessibility & contrast

On white

10.84
#381CAD on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#381CAD on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CAD
10.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CAD#FFFFFF#000000##FFFFFF
##381CAD1.0010.841.9410.84
#FFFFFF10.841.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B1
Deuteranopia (green-blind)
#0037AB
Tritanopia (blue-blind)
#004A67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #381cad;
/* rgb */ color: rgb(56, 28, 173);
/* oklch */ color: oklch(38.4% 0.208 279.1);
Tailwind
colors: {
  custom: {
    50: '#805fc7',
    500: '#381cad',
    950: '#000000',
  },
}
SCSS
$custom: #381cad;
$custom-light: #805fc7;
$custom-dark: #000000;
JSON
{
  "hex": "#381cad",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 173
  },
  "hsl": {
    "h": 251.586,
    "s": 72.139,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38437,
    "c": 0.20774,
    "h": 279.1
  },
  "luminance": 0.04688
}

Semantic roles & 50–950 ramp

primary
#381CAD
secondary
#B4C95C
accent
#EF39CC
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381CAD

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

Preview Lab → · Contrast checker → · Palette generator →

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