#381D7E#381D7E

#381D7E is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.5% C 0.152 H 288.0°. Best body text is #FFFFFF at 12.76:1 contrast (WCAG AA passes).

Color values

HEX#381D7E
RGBrgb(56, 29, 126)
HSLhsl(257, 63%, 30%)
HSVhsv(257, 77%, 49%)
CMYKcmyk(55.6%, 77%, 0%, 50.6%)
CIE-LABlab(20.93, 38.08, -50.12)
CIE-LCHlch(20.93, 62.95, 307.23°)
OKLaboklab(33.53% 0.0469 -0.1441)
OKLCHoklch(33.53% 0.152 288)
XYZxyz(5.8350, 3.2255, 20.0498)
Luminance0.0323 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D7E #637E1D
analogous
#1D327E #381D7E #681D7E
triadic
#381D7E #7E381D #1D7E38
tetradic
#381D7E #7E1D32 #637E1D #1D7E68
square
#381D7E #7E1D32 #637E1D #1D7E68
split-complementary
#381D7E #7E681D #327E1D
monochromatic
#0C061B #22124C #381D7E #4E28B0 #6A42D3

Accessibility & contrast

On white

12.76
#381D7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381D7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D7E
12.76:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D7E#FFFFFF#000000##FFFFFF
##381D7E1.0012.761.6512.76
#FFFFFF12.761.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.761.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#00307C
Tritanopia (blue-blind)
#1C384C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381d7e;
/* rgb */ color: rgb(56, 29, 126);
/* oklch */ color: oklch(33.5% 0.152 288.0);
Tailwind
colors: {
  custom: {
    50: '#775ca4',
    500: '#381d7e',
    950: '#000000',
  },
}
SCSS
$custom: #381d7e;
$custom-light: #775ca4;
$custom-dark: #000000;
JSON
{
  "hex": "#381d7e",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 126
  },
  "hsl": {
    "h": 256.701,
    "s": 62.581,
    "l": 30.392
  },
  "oklch": {
    "l": 0.3353,
    "c": 0.15156,
    "h": 288
  },
  "luminance": 0.03226
}

Semantic roles & 50–950 ramp

primary
#381D7E
secondary
#93B145
accent
#E642B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381D7E

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

Preview Lab → · Contrast checker → · Palette generator →

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