#381E96#381E96

#381E96 is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.1% C 0.180 H 282.6°. Best body text is #FFFFFF at 11.70:1 contrast (WCAG AA passes).

Color values

HEX#381E96
RGBrgb(56, 30, 150)
HSLhsl(253, 67%, 35%)
HSVhsv(253, 80%, 59%)
CMYKcmyk(62.7%, 80%, 0%, 41.2%)
CIE-LABlab(23.57, 44.81, -60.76)
CIE-LCHlch(23.57, 75.50, 306.41°)
OKLaboklab(36.13% 0.0392 -0.1752)
OKLCHoklch(36.13% 0.18 282.6)
XYZxyz(7.5985, 3.9708, 29.2143)
Luminance0.0397 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E96 #7C961E
analogous
#1E4096 #381E96 #741E96
triadic
#381E96 #96381E #1E9638
tetradic
#381E96 #961E40 #7C961E #1E9674
square
#381E96 #961E40 #7C961E #1E9674
split-complementary
#381E96 #96741E #40961E
monochromatic
#120A30 #251463 #381E96 #4B28C9 #7052DC

Accessibility & contrast

On white

11.70
#381E96 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381E96 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E96
11.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E96#FFFFFF#000000##FFFFFF
##381E961.0011.701.7911.70
#FFFFFF11.701.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C99
Deuteranopia (green-blind)
#003494
Tritanopia (blue-blind)
#00425A
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381e96;
/* rgb */ color: rgb(56, 30, 150);
/* oklch */ color: oklch(36.1% 0.180 282.6);
Tailwind
colors: {
  custom: {
    50: '#7b5eb6',
    500: '#381e96',
    950: '#000000',
  },
}
SCSS
$custom: #381e96;
$custom-light: #7b5eb6;
$custom-dark: #000000;
JSON
{
  "hex": "#381e96",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 150
  },
  "hsl": {
    "h": 253,
    "s": 66.667,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36128,
    "c": 0.17958,
    "h": 282.6
  },
  "luminance": 0.03971
}

Semantic roles & 50–950 ramp

primary
#381E96
secondary
#A7BF50
accent
#EA3EC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381E96

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

Preview Lab → · Contrast checker → · Palette generator →

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