#381D8B#381D8B

#381D8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 34.9% C 0.167 H 284.9°. Best body text is #FFFFFF at 12.23:1 contrast (WCAG AA passes).

Color values

HEX#381D8B
RGBrgb(56, 29, 139)
HSLhsl(255, 65%, 33%)
HSVhsv(255, 79%, 55%)
CMYKcmyk(59.7%, 79.1%, 0%, 45.5%)
CIE-LABlab(22.24, 42.01, -56.14)
CIE-LCHlch(22.24, 70.11, 306.81°)
OKLaboklab(34.85% 0.0432 -0.1617)
OKLCHoklch(34.85% 0.167 284.9)
XYZxyz(6.7290, 3.5831, 24.7581)
Luminance0.0358 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D8B #708B1D
analogous
#1D398B #381D8B #6F1D8B
triadic
#381D8B #8B381D #1D8B38
tetradic
#381D8B #8B1D39 #708B1D #1D8B6F
square
#381D8B #8B1D39 #708B1D #1D8B6F
split-complementary
#381D8B #8B6F1D #398B1D
monochromatic
#0F0826 #241258 #381D8B #4C28BE #6D49D9

Accessibility & contrast

On white

12.23
#381D8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D8B
12.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D8B#FFFFFF#000000##FFFFFF
##381D8B1.0012.231.7212.23
#FFFFFF12.231.0021.001.00
#0000001.7221.001.0021.00
##FFFFFF12.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00388E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#083D53
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381d8b;
/* rgb */ color: rgb(56, 29, 139);
/* oklch */ color: oklch(34.9% 0.167 284.9);
Tailwind
colors: {
  custom: {
    50: '#795dae',
    500: '#381d8b',
    950: '#000000',
  },
}
SCSS
$custom: #381d8b;
$custom-light: #795dae;
$custom-dark: #000000;
JSON
{
  "hex": "#381d8b",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 139
  },
  "hsl": {
    "h": 254.727,
    "s": 65.476,
    "l": 32.941
  },
  "oklch": {
    "l": 0.34852,
    "c": 0.16739,
    "h": 284.9
  },
  "luminance": 0.03584
}

Semantic roles & 50–950 ramp

primary
#381D8B
secondary
#9FBB49
accent
#E83FBF
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381D8B

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

Preview Lab → · Contrast checker → · Palette generator →

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