#381AA7#381AA7

#381AA7 is a dark, highly saturated violet. Relative luminance 0.044; OKLCH L 37.6% C 0.202 H 280.1°. Best body text is #FFFFFF at 11.21:1 contrast (WCAG AA passes).

Color values

HEX#381AA7
RGBrgb(56, 26, 167)
HSLhsl(253, 73%, 38%)
HSVhsv(253, 84%, 65%)
CMYKcmyk(66.5%, 84.4%, 0%, 34.5%)
CIE-LABlab(24.86, 51.57, -69.03)
CIE-LCHlch(24.86, 86.16, 306.76°)
OKLaboklab(37.57% 0.0357 -0.1992)
OKLCHoklch(37.57% 0.202 280.1)
XYZxyz(8.9731, 4.3688, 36.9221)
Luminance0.0437 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381AA7 #89A71A
analogous
#1A42A7 #381AA7 #7E1AA7
triadic
#381AA7 #A7381A #1AA738
tetradic
#381AA7 #A71A42 #89A71A #1AA77E
square
#381AA7 #A71A42 #89A71A #1AA77E
split-complementary
#381AA7 #A77E1A #42A71A
monochromatic
#140A3D #261272 #381AA7 #4A22DC #7557E5

Accessibility & contrast

On white

11.21
#381AA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#381AA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381AA7
11.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381AA7#FFFFFF#000000##FFFFFF
##381AA71.0011.211.8711.21
#FFFFFF11.211.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AB
Deuteranopia (green-blind)
#0036A5
Tritanopia (blue-blind)
#004763
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #381aa7;
/* rgb */ color: rgb(56, 26, 167);
/* oklch */ color: oklch(37.6% 0.202 280.1);
Tailwind
colors: {
  custom: {
    50: '#7f5dc3',
    500: '#381aa7',
    950: '#000000',
  },
}
SCSS
$custom: #381aa7;
$custom-light: #7f5dc3;
$custom-dark: #000000;
JSON
{
  "hex": "#381aa7",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 167
  },
  "hsl": {
    "h": 252.766,
    "s": 73.057,
    "l": 37.843
  },
  "oklch": {
    "l": 0.3757,
    "c": 0.20242,
    "h": 280.1
  },
  "luminance": 0.0437
}

Semantic roles & 50–950 ramp

primary
#381AA7
secondary
#AFC855
accent
#F038C9
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381AA7

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

Preview Lab → · Contrast checker → · Palette generator →

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