#381D9D#381D9D

#381D9D is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.189 H 281.5°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#381D9D
RGBrgb(56, 29, 157)
HSLhsl(253, 69%, 36%)
HSVhsv(253, 82%, 62%)
CMYKcmyk(64.3%, 81.5%, 0%, 38.4%)
CIE-LABlab(24.17, 47.37, -64.07)
CIE-LCHlch(24.17, 79.68, 306.47°)
OKLaboklab(36.77% 0.0376 -0.1849)
OKLCHoklch(36.77% 0.189 281.5)
XYZxyz(8.1541, 4.1532, 32.2637)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D9D #829D1D
analogous
#1D429D #381D9D #781D9D
triadic
#381D9D #9D381D #1D9D38
tetradic
#381D9D #9D1D42 #829D1D #1D9D78
square
#381D9D #9D1D42 #829D1D #1D9D78
split-complementary
#381D9D #9D781D #429D1D
monochromatic
#130A36 #261369 #381D9D #4A27D1 #7255E0

Accessibility & contrast

On white

11.47
#381D9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#381D9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D9D
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D9D#FFFFFF#000000##FFFFFF
##381D9D1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA0
Deuteranopia (green-blind)
#00359B
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381d9d;
/* rgb */ color: rgb(56, 29, 157);
/* oklch */ color: oklch(36.8% 0.189 281.5);
Tailwind
colors: {
  custom: {
    50: '#7d5ebb',
    500: '#381d9d',
    950: '#000000',
  },
}
SCSS
$custom: #381d9d;
$custom-light: #7d5ebb;
$custom-dark: #000000;
JSON
{
  "hex": "#381d9d",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 157
  },
  "hsl": {
    "h": 252.656,
    "s": 68.817,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36768,
    "c": 0.18867,
    "h": 281.5
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#381D9D
secondary
#ABC353
accent
#EC3CC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381D9D

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

Preview Lab → · Contrast checker → · Palette generator →

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