#381BA7#381BA7

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

Color values

HEX#381BA7
RGBrgb(56, 27, 167)
HSLhsl(252, 72%, 38%)
HSVhsv(252, 84%, 65%)
CMYKcmyk(66.5%, 83.8%, 0%, 34.5%)
CIE-LABlab(25.00, 51.16, -68.80)
CIE-LCHlch(25.00, 85.73, 306.64°)
OKLaboklab(37.67% 0.0352 -0.1986)
OKLCHoklch(37.67% 0.202 280.1)
XYZxyz(8.9957, 4.4139, 36.9296)
Luminance0.0442 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381BA7 #8AA71B
analogous
#1B44A7 #381BA7 #7E1BA7
triadic
#381BA7 #A7381B #1BA738
tetradic
#381BA7 #A71B44 #8AA71B #1BA77E
square
#381BA7 #A71B44 #8AA71B #1BA77E
split-complementary
#381BA7 #A77E1B #44A71B
monochromatic
#150A3E #261272 #381BA7 #4A24DC #7558E4

Accessibility & contrast

On white

11.15
#381BA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.88
#381BA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381BA7
11.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381BA7#FFFFFF#000000##FFFFFF
##381BA71.0011.151.8811.15
#FFFFFF11.151.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.151.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381ba7;
/* rgb */ color: rgb(56, 27, 167);
/* oklch */ color: oklch(37.7% 0.202 280.1);
Tailwind
colors: {
  custom: {
    50: '#7f5ec3',
    500: '#381ba7',
    950: '#000000',
  },
}
SCSS
$custom: #381ba7;
$custom-light: #7f5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#381ba7",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 167
  },
  "hsl": {
    "h": 252.429,
    "s": 72.165,
    "l": 38.039
  },
  "oklch": {
    "l": 0.37666,
    "c": 0.20169,
    "h": 280.1
  },
  "luminance": 0.04415
}

Semantic roles & 50–950 ramp

primary
#381BA7
secondary
#B0C856
accent
#EF39C9
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381BA7

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

Preview Lab → · Contrast checker → · Palette generator →

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