#381F9E#381F9E

#381F9E is a dark, vivid violet. Relative luminance 0.043; OKLCH L 37.1% C 0.188 H 281.1°. Best body text is #FFFFFF at 11.30:1 contrast (WCAG AA passes).

Color values

HEX#381F9E
RGBrgb(56, 31, 158)
HSLhsl(252, 67%, 37%)
HSVhsv(252, 80%, 62%)
CMYKcmyk(64.6%, 80.4%, 0%, 38%)
CIE-LABlab(24.60, 46.73, -63.97)
CIE-LCHlch(24.60, 79.22, 306.15°)
OKLaboklab(37.1% 0.0362 -0.1846)
OKLCHoklch(37.1% 0.188 281.1)
XYZxyz(8.2905, 4.2887, 32.7320)
Luminance0.0429 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F9E #859E1F
analogous
#1F469E #381F9E #781F9E
triadic
#381F9E #9E381F #1F9E38
tetradic
#381F9E #9E1F46 #859E1F #1F9E78
square
#381F9E #9E1F46 #859E1F #1F9E78
split-complementary
#381F9E #9E781F #469E1F
monochromatic
#140B38 #26156B #381F9E #4A29D1 #7359DE

Accessibility & contrast

On white

11.30
#381F9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.86
#381F9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F9E
11.30:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F9E#FFFFFF#000000##FFFFFF
##381F9E1.0011.301.8611.30
#FFFFFF11.301.0021.001.00
#0000001.8621.001.0021.00
##FFFFFF11.301.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA2
Deuteranopia (green-blind)
#00369C
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381f9e;
/* rgb */ color: rgb(56, 31, 158);
/* oklch */ color: oklch(37.1% 0.188 281.1);
Tailwind
colors: {
  custom: {
    50: '#7d5fbc',
    500: '#381f9e',
    950: '#000000',
  },
}
SCSS
$custom: #381f9e;
$custom-light: #7d5fbc;
$custom-dark: #000000;
JSON
{
  "hex": "#381f9e",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 158
  },
  "hsl": {
    "h": 251.811,
    "s": 67.196,
    "l": 37.059
  },
  "oklch": {
    "l": 0.371,
    "c": 0.18812,
    "h": 281.1
  },
  "luminance": 0.04289
}

Semantic roles & 50–950 ramp

primary
#381F9E
secondary
#ADC256
accent
#EA3EC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381F9E

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

Preview Lab → · Contrast checker → · Palette generator →

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