#381CA0#381CA0

#381CA0 is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.193 H 281.1°. Best body text is #FFFFFF at 11.40:1 contrast (WCAG AA passes).

Color values

HEX#381CA0
RGBrgb(56, 28, 160)
HSLhsl(253, 70%, 37%)
HSVhsv(253, 83%, 63%)
CMYKcmyk(65%, 82.5%, 0%, 37.3%)
CIE-LABlab(24.35, 48.70, -65.61)
CIE-LCHlch(24.35, 81.71, 306.58°)
OKLaboklab(36.99% 0.0371 -0.1893)
OKLCHoklch(36.99% 0.193 281.1)
XYZxyz(8.3893, 4.2087, 33.6212)
Luminance0.0421 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CA0 #84A01C
analogous
#1C42A0 #381CA0 #7A1CA0
triadic
#381CA0 #A0381C #1CA038
tetradic
#381CA0 #A01C42 #84A01C #1CA07A
square
#381CA0 #A01C42 #84A01C #1CA07A
split-complementary
#381CA0 #A07A1C #42A01C
monochromatic
#140A38 #26136C #381CA0 #4A25D4 #7355E1

Accessibility & contrast

On white

11.40
#381CA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#381CA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CA0
11.40:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CA0#FFFFFF#000000##FFFFFF
##381CA01.0011.401.8411.40
#FFFFFF11.401.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.401.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA4
Deuteranopia (green-blind)
#00359E
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381ca0;
/* rgb */ color: rgb(56, 28, 160);
/* oklch */ color: oklch(37.0% 0.193 281.1);
Tailwind
colors: {
  custom: {
    50: '#7e5ebd',
    500: '#381ca0',
    950: '#000000',
  },
}
SCSS
$custom: #381ca0;
$custom-light: #7e5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#381ca0",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 160
  },
  "hsl": {
    "h": 252.727,
    "s": 70.213,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36989,
    "c": 0.19295,
    "h": 281.1
  },
  "luminance": 0.04209
}

Semantic roles & 50–950 ramp

primary
#381CA0
secondary
#ACC453
accent
#ED3BC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381CA0

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

Preview Lab → · Contrast checker → · Palette generator →

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