#381BA8#381BA8

#381BA8 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 37.8% C 0.203 H 279.9°. Best body text is #FFFFFF at 11.11:1 contrast (WCAG AA passes).

Color values

HEX#381BA8
RGBrgb(56, 27, 168)
HSLhsl(252, 72%, 38%)
HSVhsv(252, 84%, 66%)
CMYKcmyk(66.7%, 83.9%, 0%, 34.1%)
CIE-LABlab(25.11, 51.44, -69.21)
CIE-LCHlch(25.11, 86.24, 306.62°)
OKLaboklab(37.78% 0.0349 -0.1998)
OKLCHoklch(37.78% 0.203 279.9)
XYZxyz(9.0885, 4.4510, 37.4184)
Luminance0.0445 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381BA8 #8BA81B
analogous
#1B45A8 #381BA8 #7E1BA8
triadic
#381BA8 #A8381B #1BA838
tetradic
#381BA8 #A81B45 #8BA81B #1BA87E
square
#381BA8 #A81B45 #8BA81B #1BA87E
split-complementary
#381BA8 #A87E1B #45A81B
monochromatic
#150A3F #261373 #381BA8 #4A24DC #7659E4

Accessibility & contrast

On white

11.11
#381BA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.89
#381BA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381BA8
11.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381BA8#FFFFFF#000000##FFFFFF
##381BA81.0011.111.8911.11
#FFFFFF11.111.0021.001.00
#0000001.8921.001.0021.00
##FFFFFF11.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040AC
Deuteranopia (green-blind)
#0036A6
Tritanopia (blue-blind)
#004864
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #381ba8;
/* rgb */ color: rgb(56, 27, 168);
/* oklch */ color: oklch(37.8% 0.203 279.9);
Tailwind
colors: {
  custom: {
    50: '#7f5ec3',
    500: '#381ba8',
    950: '#000000',
  },
}
SCSS
$custom: #381ba8;
$custom-light: #7f5ec3;
$custom-dark: #000000;
JSON
{
  "hex": "#381ba8",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 168
  },
  "hsl": {
    "h": 252.34,
    "s": 72.308,
    "l": 38.235
  },
  "oklch": {
    "l": 0.37778,
    "c": 0.20283,
    "h": 279.9
  },
  "luminance": 0.04452
}

Semantic roles & 50–950 ramp

primary
#381BA8
secondary
#B1C857
accent
#EF39CA
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381BA8

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

Preview Lab → · Contrast checker → · Palette generator →

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