#381E7A#381E7A

#381E7A is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.145 H 288.9°. Best body text is #FFFFFF at 12.85:1 contrast (WCAG AA passes).

Color values

HEX#381E7A
RGBrgb(56, 30, 122)
HSLhsl(257, 61%, 30%)
HSVhsv(257, 75%, 48%)
CMYKcmyk(54.1%, 75.4%, 0%, 52.2%)
CIE-LABlab(20.73, 36.33, -47.90)
CIE-LCHlch(20.73, 60.12, 307.18°)
OKLaboklab(33.27% 0.047 -0.1376)
OKLCHoklch(33.27% 0.145 288.9)
XYZxyz(5.6070, 3.1742, 18.7258)
Luminance0.0317 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E7A #607A1E
analogous
#1E327A #381E7A #661E7A
triadic
#381E7A #7A381E #1E7A38
tetradic
#381E7A #7A1E32 #607A1E #1E7A66
square
#381E7A #7A1E32 #607A1E #1E7A66
split-complementary
#381E7A #7A661E #327A1E
monochromatic
#0B0619 #211249 #381E7A #4F2AAB #6A42D0

Accessibility & contrast

On white

12.85
#381E7A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381E7A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E7A
12.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E7A#FFFFFF#000000##FFFFFF
##381E7A1.0012.851.6312.85
#FFFFFF12.851.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347D
Deuteranopia (green-blind)
#003078
Tritanopia (blue-blind)
#1F374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381e7a;
/* rgb */ color: rgb(56, 30, 122);
/* oklch */ color: oklch(33.3% 0.145 288.9);
Tailwind
colors: {
  custom: {
    50: '#765ca1',
    500: '#381e7a',
    950: '#000000',
  },
}
SCSS
$custom: #381e7a;
$custom-light: #765ca1;
$custom-dark: #000000;
JSON
{
  "hex": "#381e7a",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 122
  },
  "hsl": {
    "h": 256.957,
    "s": 60.526,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33272,
    "c": 0.14543,
    "h": 288.9
  },
  "luminance": 0.03174
}

Semantic roles & 50–950 ramp

primary
#381E7A
secondary
#90AE46
accent
#E444B7
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E7A

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

Preview Lab → · Contrast checker → · Palette generator →

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