#381BAE#381BAE

#381BAE is a dark, highly saturated violet. Relative luminance 0.047; OKLCH L 38.5% C 0.210 H 279.0°. Best body text is #FFFFFF at 10.85:1 contrast (WCAG AA passes).

Color values

HEX#381BAE
RGBrgb(56, 27, 174)
HSLhsl(252, 73%, 39%)
HSVhsv(252, 84%, 68%)
CMYKcmyk(67.8%, 84.5%, 0%, 31.8%)
CIE-LABlab(25.80, 53.16, -71.68)
CIE-LCHlch(25.80, 89.24, 306.56°)
OKLaboklab(38.46% 0.0329 -0.207)
OKLCHoklch(38.46% 0.21 279)
XYZxyz(9.6604, 4.6798, 40.4304)
Luminance0.0468 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381BAE #91AE1B
analogous
#1B47AE #381BAE #821BAE
triadic
#381BAE #AE381B #1BAE38
tetradic
#381BAE #AE1B47 #91AE1B #1BAE82
square
#381BAE #AE1B47 #91AE1B #1BAE82
split-complementary
#381BAE #AE821B #47AE1B
monochromatic
#160B44 #271379 #381BAE #4C28DE #785DE6

Accessibility & contrast

On white

10.85
#381BAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.94
#381BAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381BAE
10.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381BAE#FFFFFF#000000##FFFFFF
##381BAE1.0010.851.9410.85
#FFFFFF10.851.0021.001.00
#0000001.9421.001.0021.00
##FFFFFF10.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042B2
Deuteranopia (green-blind)
#0037AC
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #381bae;
/* rgb */ color: rgb(56, 27, 174);
/* oklch */ color: oklch(38.5% 0.210 279.0);
Tailwind
colors: {
  custom: {
    50: '#815ec8',
    500: '#381bae',
    950: '#000000',
  },
}
SCSS
$custom: #381bae;
$custom-light: #815ec8;
$custom-dark: #000000;
JSON
{
  "hex": "#381bae",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 174
  },
  "hsl": {
    "h": 251.837,
    "s": 73.134,
    "l": 39.412
  },
  "oklch": {
    "l": 0.38455,
    "c": 0.20957,
    "h": 279
  },
  "luminance": 0.04681
}

Semantic roles & 50–950 ramp

primary
#381BAE
secondary
#B4CA5B
accent
#F038CC
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381BAE

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

Preview Lab → · Contrast checker → · Palette generator →

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