#381B7F#381B7F

#381B7F is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.155 H 288.1°. Best body text is #FFFFFF at 12.87:1 contrast (WCAG AA passes).

Color values

HEX#381B7F
RGBrgb(56, 27, 127)
HSLhsl(257, 65%, 30%)
HSVhsv(257, 79%, 50%)
CMYKcmyk(55.9%, 78.7%, 0%, 50.2%)
CIE-LABlab(20.66, 39.42, -51.19)
CIE-LCHlch(20.66, 64.61, 307.60°)
OKLaboklab(33.37% 0.0482 -0.1472)
OKLCHoklch(33.37% 0.155 288.1)
XYZxyz(5.8525, 3.1566, 20.3755)
Luminance0.0316 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B7F #627F1B
analogous
#1B307F #381B7F #6A1B7F
triadic
#381B7F #7F381B #1B7F38
tetradic
#381B7F #7F1B30 #627F1B #1B7F6A
square
#381B7F #7F1B30 #627F1B #1B7F6A
split-complementary
#381B7F #7F6A1B #307F1B
monochromatic
#0B061A #22104D #381B7F #4E26B1 #6A3ED6

Accessibility & contrast

On white

12.87
#381B7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381B7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B7F
12.87:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B7F#FFFFFF#000000##FFFFFF
##381B7F1.0012.871.6312.87
#FFFFFF12.871.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.871.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003482
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#1B374C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381b7f;
/* rgb */ color: rgb(56, 27, 127);
/* oklch */ color: oklch(33.4% 0.155 288.1);
Tailwind
colors: {
  custom: {
    50: '#775ba5',
    500: '#381b7f',
    950: '#000000',
  },
}
SCSS
$custom: #381b7f;
$custom-light: #775ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#381b7f",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 127
  },
  "hsl": {
    "h": 257.4,
    "s": 64.935,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33374,
    "c": 0.15494,
    "h": 288.1
  },
  "luminance": 0.03157
}

Semantic roles & 50–950 ramp

primary
#381B7F
secondary
#92B343
accent
#E840B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381B7F

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

Preview Lab → · Contrast checker → · Palette generator →

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