#381D8F#381D8F

#381D8F is a dark, vivid violet. Relative luminance 0.037; OKLCH L 35.3% C 0.172 H 284.1°. Best body text is #FFFFFF at 12.06:1 contrast (WCAG AA passes).

Color values

HEX#381D8F
RGBrgb(56, 29, 143)
HSLhsl(254, 66%, 34%)
HSVhsv(254, 80%, 56%)
CMYKcmyk(60.8%, 79.7%, 0%, 43.9%)
CIE-LABlab(22.66, 43.21, -57.94)
CIE-LCHlch(22.66, 72.27, 306.71°)
OKLaboklab(35.27% 0.042 -0.167)
OKLCHoklch(35.27% 0.172 284.1)
XYZxyz(7.0267, 3.7022, 26.3256)
Luminance0.0370 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D8F #748F1D
analogous
#1D3B8F #381D8F #711D8F
triadic
#381D8F #8F381D #1D8F38
tetradic
#381D8F #8F1D3B #748F1D #1D8F71
square
#381D8F #8F1D3B #748F1D #1D8F71
split-complementary
#381D8F #8F711D #3B8F1D
monochromatic
#100829 #24135C #381D8F #4C27C2 #6E4CDB

Accessibility & contrast

On white

12.06
#381D8F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.74
#381D8F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D8F
12.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D8F#FFFFFF#000000##FFFFFF
##381D8F1.0012.061.7412.06
#FFFFFF12.061.0021.001.00
#0000001.7421.001.0021.00
##FFFFFF12.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003992
Deuteranopia (green-blind)
#00328D
Tritanopia (blue-blind)
#003E56
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381d8f;
/* rgb */ color: rgb(56, 29, 143);
/* oklch */ color: oklch(35.3% 0.172 284.1);
Tailwind
colors: {
  custom: {
    50: '#7a5db1',
    500: '#381d8f',
    950: '#000000',
  },
}
SCSS
$custom: #381d8f;
$custom-light: #7a5db1;
$custom-dark: #000000;
JSON
{
  "hex": "#381d8f",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 143
  },
  "hsl": {
    "h": 254.211,
    "s": 66.279,
    "l": 33.725
  },
  "oklch": {
    "l": 0.3527,
    "c": 0.17218,
    "h": 284.1
  },
  "luminance": 0.03703
}

Semantic roles & 50–950 ramp

primary
#381D8F
secondary
#A2BD4B
accent
#E93FC1
background
#F7F5FB
surface
#EEE9F6
border
#C9C5D0
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381D8F

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

Preview Lab → · Contrast checker → · Palette generator →

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