#381D8C#381D8C

#381D8C is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.169 H 284.7°. Best body text is #FFFFFF at 12.19:1 contrast (WCAG AA passes).

Color values

HEX#381D8C
RGBrgb(56, 29, 140)
HSLhsl(255, 66%, 33%)
HSVhsv(255, 79%, 55%)
CMYKcmyk(60%, 79.3%, 0%, 45.1%)
CIE-LABlab(22.35, 42.31, -56.59)
CIE-LCHlch(22.35, 70.65, 306.78°)
OKLaboklab(34.96% 0.0429 -0.1631)
OKLCHoklch(34.96% 0.169 284.7)
XYZxyz(6.8024, 3.6125, 25.1447)
Luminance0.0361 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D8C #718C1D
analogous
#1D398C #381D8C #6F1D8C
triadic
#381D8C #8C381D #1D8C38
tetradic
#381D8C #8C1D39 #718C1D #1D8C6F
square
#381D8C #8C1D39 #718C1D #1D8C6F
split-complementary
#381D8C #8C6F1D #398C1D
monochromatic
#0F0827 #241259 #381D8C #4C28BF #6D4AD9

Accessibility & contrast

On white

12.19
#381D8C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.72
#381D8C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381D8C
12.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D8C#FFFFFF#000000##FFFFFF
##381D8C1.0012.191.7212.19
#FFFFFF12.191.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388F
Deuteranopia (green-blind)
#00328A
Tritanopia (blue-blind)
#063D54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381d8c;
/* rgb */ color: rgb(56, 29, 140);
/* oklch */ color: oklch(35.0% 0.169 284.7);
Tailwind
colors: {
  custom: {
    50: '#7a5daf',
    500: '#381d8c',
    950: '#000000',
  },
}
SCSS
$custom: #381d8c;
$custom-light: #7a5daf;
$custom-dark: #000000;
JSON
{
  "hex": "#381d8c",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 140
  },
  "hsl": {
    "h": 254.595,
    "s": 65.68,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34956,
    "c": 0.1686,
    "h": 284.7
  },
  "luminance": 0.03613
}

Semantic roles & 50–950 ramp

primary
#381D8C
secondary
#A0BC49
accent
#E93FBF
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D8C

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

Preview Lab → · Contrast checker → · Palette generator →

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