#381D7B#381D7B

#381D7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.2% C 0.148 H 288.8°. Best body text is #FFFFFF at 12.88:1 contrast (WCAG AA passes).

Color values

HEX#381D7B
RGBrgb(56, 29, 123)
HSLhsl(257, 62%, 30%)
HSVhsv(257, 76%, 48%)
CMYKcmyk(54.5%, 76.4%, 0%, 51.8%)
CIE-LABlab(20.63, 37.18, -48.69)
CIE-LCHlch(20.63, 61.26, 307.36°)
OKLaboklab(33.23% 0.0476 -0.1399)
OKLCHoklch(33.23% 0.148 288.8)
XYZxyz(5.6444, 3.1493, 19.0455)
Luminance0.0315 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D7B #607B1D
analogous
#1D317B #381D7B #671D7B
triadic
#381D7B #7B381D #1D7B38
tetradic
#381D7B #7B1D31 #607B1D #1D7B67
square
#381D7B #7B1D31 #607B1D #1D7B67
split-complementary
#381D7B #7B671D #317B1D
monochromatic
#0B0619 #211149 #381D7B #4F29AD #6A40D2

Accessibility & contrast

On white

12.88
#381D7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D7B
12.88:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D7B#FFFFFF#000000##FFFFFF
##381D7B1.0012.881.6312.88
#FFFFFF12.881.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.881.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#002F79
Tritanopia (blue-blind)
#1E374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381d7b;
/* rgb */ color: rgb(56, 29, 123);
/* oklch */ color: oklch(33.2% 0.148 288.8);
Tailwind
colors: {
  custom: {
    50: '#775ca2',
    500: '#381d7b',
    950: '#000000',
  },
}
SCSS
$custom: #381d7b;
$custom-light: #775ca2;
$custom-dark: #000000;
JSON
{
  "hex": "#381d7b",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 123
  },
  "hsl": {
    "h": 257.234,
    "s": 61.842,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33234,
    "c": 0.14784,
    "h": 288.8
  },
  "luminance": 0.0315
}

Semantic roles & 50–950 ramp

primary
#381D7B
secondary
#90AF45
accent
#E543B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381D7B

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

Preview Lab → · Contrast checker → · Palette generator →

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