#381D9F#381D9F

#381D9F is a dark, vivid violet. Relative luminance 0.042; OKLCH L 37.0% C 0.191 H 281.1°. Best body text is #FFFFFF at 11.38:1 contrast (WCAG AA passes).

Color values

HEX#381D9F
RGBrgb(56, 29, 159)
HSLhsl(252, 69%, 37%)
HSVhsv(252, 82%, 62%)
CMYKcmyk(64.8%, 81.8%, 0%, 37.6%)
CIE-LABlab(24.39, 47.96, -64.93)
CIE-LCHlch(24.39, 80.72, 306.45°)
OKLaboklab(36.99% 0.0369 -0.1874)
OKLCHoklch(36.99% 0.191 281.1)
XYZxyz(8.3263, 4.2220, 33.1703)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D9F #849F1D
analogous
#1D439F #381D9F #791D9F
triadic
#381D9F #9F381D #1D9F38
tetradic
#381D9F #9F1D43 #849F1D #1D9F79
square
#381D9F #9F1D43 #849F1D #1D9F79
split-complementary
#381D9F #9F791D #439F1D
monochromatic
#140A37 #26146B #381D9F #4A26D3 #7356E0

Accessibility & contrast

On white

11.38
#381D9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#381D9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D9F
11.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D9F#FFFFFF#000000##FFFFFF
##381D9F1.0011.381.8411.38
#FFFFFF11.381.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003EA3
Deuteranopia (green-blind)
#00359D
Tritanopia (blue-blind)
#00455F
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381d9f;
/* rgb */ color: rgb(56, 29, 159);
/* oklch */ color: oklch(37.0% 0.191 281.1);
Tailwind
colors: {
  custom: {
    50: '#7d5ebd',
    500: '#381d9f',
    950: '#000000',
  },
}
SCSS
$custom: #381d9f;
$custom-light: #7d5ebd;
$custom-dark: #000000;
JSON
{
  "hex": "#381d9f",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 159
  },
  "hsl": {
    "h": 252.462,
    "s": 69.149,
    "l": 36.863
  },
  "oklch": {
    "l": 0.36986,
    "c": 0.19098,
    "h": 281.1
  },
  "luminance": 0.04223
}

Semantic roles & 50–950 ramp

primary
#381D9F
secondary
#ACC454
accent
#EC3CC7
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381D9F

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

Preview Lab → · Contrast checker → · Palette generator →

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