#381CAE#381CAE

#381CAE is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.6% C 0.209 H 278.9°. Best body text is #FFFFFF at 10.79:1 contrast (WCAG AA passes).

Color values

HEX#381CAE
RGBrgb(56, 28, 174)
HSLhsl(252, 72%, 40%)
HSVhsv(252, 84%, 68%)
CMYKcmyk(67.8%, 83.9%, 0%, 31.8%)
CIE-LABlab(25.94, 52.75, -71.45)
CIE-LCHlch(25.94, 88.81, 306.44°)
OKLaboklab(38.55% 0.0325 -0.2063)
OKLCHoklch(38.55% 0.209 278.9)
XYZxyz(9.6837, 4.7264, 40.4382)
Luminance0.0473 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CAE #92AE1C
analogous
#1C49AE #381CAE #811CAE
triadic
#381CAE #AE381C #1CAE38
tetradic
#381CAE #AE1C49 #92AE1C #1CAE81
square
#381CAE #AE1C49 #92AE1C #1CAE81
split-complementary
#381CAE #AE811C #49AE1C
monochromatic
#160B45 #271479 #381CAE #4D2ADD #795FE5

Accessibility & contrast

On white

10.79
#381CAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.95
#381CAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CAE
10.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CAE#FFFFFF#000000##FFFFFF
##381CAE1.0010.791.9510.79
#FFFFFF10.791.0021.001.00
#0000001.9521.001.0021.00
##FFFFFF10.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B2
Deuteranopia (green-blind)
#0038AC
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #381cae;
/* rgb */ color: rgb(56, 28, 174);
/* oklch */ color: oklch(38.6% 0.209 278.9);
Tailwind
colors: {
  custom: {
    50: '#805fc8',
    500: '#381cae',
    950: '#000000',
  },
}
SCSS
$custom: #381cae;
$custom-light: #805fc8;
$custom-dark: #000000;
JSON
{
  "hex": "#381cae",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 174
  },
  "hsl": {
    "h": 251.507,
    "s": 72.277,
    "l": 39.608
  },
  "oklch": {
    "l": 0.3855,
    "c": 0.20886,
    "h": 278.9
  },
  "luminance": 0.04727
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381CAE

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

Preview Lab → · Contrast checker → · Palette generator →

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