#381FA1#381FA1

#381FA1 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.4% C 0.192 H 280.6°. Best body text is #FFFFFF at 11.18:1 contrast (WCAG AA passes).

Color values

HEX#381FA1
RGBrgb(56, 31, 161)
HSLhsl(252, 68%, 38%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(65.2%, 80.7%, 0%, 36.9%)
CIE-LABlab(24.93, 47.62, -65.26)
CIE-LCHlch(24.93, 80.79, 306.12°)
OKLaboklab(37.42% 0.0352 -0.1884)
OKLCHoklch(37.42% 0.192 280.6)
XYZxyz(8.5519, 4.3933, 34.1086)
Luminance0.0439 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FA1 #88A11F
analogous
#1F47A1 #381FA1 #791FA1
triadic
#381FA1 #A1381F #1FA138
tetradic
#381FA1 #A11F47 #88A11F #1FA179
square
#381FA1 #A11F47 #88A11F #1FA179
split-complementary
#381FA1 #A1791F #47A11F
monochromatic
#140B3A #26156E #381FA1 #4A29D4 #745BDF

Accessibility & contrast

On white

11.18
#381FA1 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381FA1
11.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FA1#FFFFFF#000000##FFFFFF
##381FA11.0011.181.8811.18
#FFFFFF11.181.0021.001.00
#0000001.8821.001.0021.00
##FFFFFF11.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0040A5
Deuteranopia (green-blind)
#00369F
Tritanopia (blue-blind)
#004760
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #381fa1;
/* rgb */ color: rgb(56, 31, 161);
/* oklch */ color: oklch(37.4% 0.192 280.6);
Tailwind
colors: {
  custom: {
    50: '#7e5fbe',
    500: '#381fa1',
    950: '#000000',
  },
}
SCSS
$custom: #381fa1;
$custom-light: #7e5fbe;
$custom-dark: #000000;
JSON
{
  "hex": "#381fa1",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 161
  },
  "hsl": {
    "h": 251.538,
    "s": 67.708,
    "l": 37.647
  },
  "oklch": {
    "l": 0.37424,
    "c": 0.19163,
    "h": 280.6
  },
  "luminance": 0.04394
}

Semantic roles & 50–950 ramp

primary
#381FA1
secondary
#AFC458
accent
#EB3DC9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381FA1

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

Preview Lab → · Contrast checker → · Palette generator →

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