#381E7D#381E7D

#381E7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.149 H 288.1°. Best body text is #FFFFFF at 12.73:1 contrast (WCAG AA passes).

Color values

HEX#381E7D
RGBrgb(56, 30, 125)
HSLhsl(256, 61%, 30%)
HSVhsv(256, 76%, 49%)
CMYKcmyk(55.2%, 76%, 0%, 51%)
CIE-LABlab(21.02, 37.24, -49.33)
CIE-LCHlch(21.02, 61.81, 307.05°)
OKLaboklab(33.57% 0.0463 -0.1418)
OKLCHoklch(33.57% 0.149 288.1)
XYZxyz(5.7957, 3.2497, 19.7199)
Luminance0.0325 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E7D #637D1E
analogous
#1E337D #381E7D #671E7D
triadic
#381E7D #7D381E #1E7D38
tetradic
#381E7D #7D1E33 #637D1E #1E7D67
square
#381E7D #7D1E33 #637D1E #1E7D67
split-complementary
#381E7D #7D671E #337D1E
monochromatic
#0C061A #22124C #381E7D #4E2AAE #6A43D2

Accessibility & contrast

On white

12.73
#381E7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381E7D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E7D
12.73:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E7D#FFFFFF#000000##FFFFFF
##381E7D1.0012.731.6512.73
#FFFFFF12.731.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.731.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#1D384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381e7d;
/* rgb */ color: rgb(56, 30, 125);
/* oklch */ color: oklch(33.6% 0.149 288.1);
Tailwind
colors: {
  custom: {
    50: '#775da4',
    500: '#381e7d',
    950: '#000000',
  },
}
SCSS
$custom: #381e7d;
$custom-light: #775da4;
$custom-dark: #000000;
JSON
{
  "hex": "#381e7d",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 125
  },
  "hsl": {
    "h": 256.421,
    "s": 61.29,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33565,
    "c": 0.14919,
    "h": 288.1
  },
  "luminance": 0.0325
}

Semantic roles & 50–950 ramp

primary
#381E7D
secondary
#93B046
accent
#E443B8
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E7D

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

Preview Lab → · Contrast checker → · Palette generator →

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