#381E7B#381E7B

#381E7B is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.4% C 0.147 H 288.6°. Best body text is #FFFFFF at 12.81:1 contrast (WCAG AA passes).

Color values

HEX#381E7B
RGBrgb(56, 30, 123)
HSLhsl(257, 61%, 30%)
HSVhsv(257, 76%, 48%)
CMYKcmyk(54.5%, 75.6%, 0%, 51.8%)
CIE-LABlab(20.82, 36.63, -48.38)
CIE-LCHlch(20.82, 60.68, 307.13°)
OKLaboklab(33.37% 0.0468 -0.139)
OKLCHoklch(33.37% 0.147 288.6)
XYZxyz(5.6693, 3.1991, 19.0538)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E7B #617B1E
analogous
#1E337B #381E7B #661E7B
triadic
#381E7B #7B381E #1E7B38
tetradic
#381E7B #7B1E33 #617B1E #1E7B66
square
#381E7B #7B1E33 #617B1E #1E7B66
split-complementary
#381E7B #7B661E #337B1E
monochromatic
#0B0619 #22124A #381E7B #4E2AAC #6A42D1

Accessibility & contrast

On white

12.81
#381E7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381E7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E7B
12.81:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E7B#FFFFFF#000000##FFFFFF
##381E7B1.0012.811.6412.81
#FFFFFF12.811.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.811.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347E
Deuteranopia (green-blind)
#003079
Tritanopia (blue-blind)
#1E374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381e7b;
/* rgb */ color: rgb(56, 30, 123);
/* oklch */ color: oklch(33.4% 0.147 288.6);
Tailwind
colors: {
  custom: {
    50: '#765da2',
    500: '#381e7b',
    950: '#000000',
  },
}
SCSS
$custom: #381e7b;
$custom-light: #765da2;
$custom-dark: #000000;
JSON
{
  "hex": "#381e7b",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 123
  },
  "hsl": {
    "h": 256.774,
    "s": 60.784,
    "l": 30
  },
  "oklch": {
    "l": 0.33369,
    "c": 0.14669,
    "h": 288.6
  },
  "luminance": 0.03199
}

Semantic roles & 50–950 ramp

primary
#381E7B
secondary
#91AE46
accent
#E444B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381E7B

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

Preview Lab → · Contrast checker → · Palette generator →

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