#381E9F#381E9F

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

Color values

HEX#381E9F
RGBrgb(56, 30, 159)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 62%)
CMYKcmyk(64.8%, 81.1%, 0%, 37.6%)
CIE-LABlab(24.55, 47.50, -64.67)
CIE-LCHlch(24.55, 80.24, 306.29°)
OKLaboklab(37.1% 0.0364 -0.1866)
OKLCHoklch(37.1% 0.19 281)
XYZxyz(8.3512, 4.2719, 33.1786)
Luminance0.0427 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E9F #859F1E
analogous
#1E459F #381E9F #791E9F
triadic
#381E9F #9F381E #1E9F38
tetradic
#381E9F #9F1E45 #859F1E #1E9F79
square
#381E9F #9F1E45 #859F1E #1E9F79
split-complementary
#381E9F #9F791E #459F1E
monochromatic
#140B38 #26146C #381E9F #4A28D2 #7358DF

Accessibility & contrast

On white

11.32
#381E9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.85
#381E9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E9F
11.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E9F#FFFFFF#000000##FFFFFF
##381E9F1.0011.321.8511.32
#FFFFFF11.321.0021.001.00
#0000001.8521.001.0021.00
##FFFFFF11.321.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381e9f;
/* rgb */ color: rgb(56, 30, 159);
/* oklch */ color: oklch(37.1% 0.190 281.0);
Tailwind
colors: {
  custom: {
    50: '#7d5fbd',
    500: '#381e9f',
    950: '#000000',
  },
}
SCSS
$custom: #381e9f;
$custom-light: #7d5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#381e9f",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 159
  },
  "hsl": {
    "h": 252.093,
    "s": 68.254,
    "l": 37.059
  },
  "oklch": {
    "l": 0.37095,
    "c": 0.19015,
    "h": 281
  },
  "luminance": 0.04273
}

Semantic roles & 50–950 ramp

primary
#381E9F
secondary
#ADC356
accent
#EB3DC8
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381E9F

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

Preview Lab → · Contrast checker → · Palette generator →

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