#381D7C#381D7C

#381D7C is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.149 H 288.5°. Best body text is #FFFFFF at 12.84:1 contrast (WCAG AA passes).

Color values

HEX#381D7C
RGBrgb(56, 29, 124)
HSLhsl(257, 62%, 30%)
HSVhsv(257, 77%, 49%)
CMYKcmyk(54.8%, 76.6%, 0%, 51.4%)
CIE-LABlab(20.73, 37.48, -49.17)
CIE-LCHlch(20.73, 61.83, 307.32°)
OKLaboklab(33.33% 0.0474 -0.1413)
OKLCHoklch(33.33% 0.149 288.5)
XYZxyz(5.7073, 3.1744, 19.3769)
Luminance0.0318 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D7C #617C1D
analogous
#1D317C #381D7C #681D7C
triadic
#381D7C #7C381D #1D7C38
tetradic
#381D7C #7C1D31 #617C1D #1D7C68
square
#381D7C #7C1D31 #617C1D #1D7C68
split-complementary
#381D7C #7C681D #317C1D
monochromatic
#0B0619 #22114A #381D7C #4E29AE #6A41D3

Accessibility & contrast

On white

12.84
#381D7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381D7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D7C
12.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D7C#FFFFFF#000000##FFFFFF
##381D7C1.0012.841.6412.84
#FFFFFF12.841.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#1E374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381d7c;
/* rgb */ color: rgb(56, 29, 124);
/* oklch */ color: oklch(33.3% 0.149 288.5);
Tailwind
colors: {
  custom: {
    50: '#775ca3',
    500: '#381d7c',
    950: '#000000',
  },
}
SCSS
$custom: #381d7c;
$custom-light: #775ca3;
$custom-dark: #000000;
JSON
{
  "hex": "#381d7c",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 124
  },
  "hsl": {
    "h": 257.053,
    "s": 62.092,
    "l": 30
  },
  "oklch": {
    "l": 0.33332,
    "c": 0.14908,
    "h": 288.5
  },
  "luminance": 0.03175
}

Semantic roles & 50–950 ramp

primary
#381D7C
secondary
#91B045
accent
#E543B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381D7C

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

Preview Lab → · Contrast checker → · Palette generator →

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