#381EAE#381EAE

#381EAE is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.7% C 0.207 H 278.8°. Best body text is #FFFFFF at 10.69:1 contrast (WCAG AA passes).

Color values

HEX#381EAE
RGBrgb(56, 30, 174)
HSLhsl(251, 71%, 40%)
HSVhsv(251, 83%, 68%)
CMYKcmyk(67.8%, 82.8%, 0%, 31.8%)
CIE-LABlab(26.23, 51.90, -70.97)
CIE-LCHlch(26.23, 87.92, 306.18°)
OKLaboklab(38.75% 0.0317 -0.205)
OKLCHoklch(38.75% 0.207 278.8)
XYZxyz(9.7327, 4.8245, 40.4545)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381EAE #94AE1E
analogous
#1E4CAE #381EAE #801EAE
triadic
#381EAE #AE381E #1EAE38
tetradic
#381EAE #AE1E4C #94AE1E #1EAE80
square
#381EAE #AE1E4C #94AE1E #1EAE80
split-complementary
#381EAE #AE801E #4CAE1E
monochromatic
#160C46 #27157A #381EAE #4D2EDB #7A62E4

Accessibility & contrast

On white

10.69
#381EAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#381EAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381EAE
10.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381EAE#FFFFFF#000000##FFFFFF
##381EAE1.0010.691.9710.69
#FFFFFF10.691.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.691.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381eae;
/* rgb */ color: rgb(56, 30, 174);
/* oklch */ color: oklch(38.7% 0.207 278.8);
Tailwind
colors: {
  custom: {
    50: '#8060c8',
    500: '#381eae',
    950: '#000000',
  },
}
SCSS
$custom: #381eae;
$custom-light: #8060c8;
$custom-dark: #000000;
JSON
{
  "hex": "#381eae",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 174
  },
  "hsl": {
    "h": 250.833,
    "s": 70.588,
    "l": 40
  },
  "oklch": {
    "l": 0.38748,
    "c": 0.20739,
    "h": 278.8
  },
  "luminance": 0.04825
}

Semantic roles & 50–950 ramp

primary
#381EAE
secondary
#B6C95F
accent
#ED3ACD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381EAE

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

Preview Lab → · Contrast checker → · Palette generator →

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