#381E6B#381E6B

#381E6B is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.126 H 293.4°. Best body text is #FFFFFF at 13.41:1 contrast (WCAG AA passes).

Color values

HEX#381E6B
RGBrgb(56, 30, 107)
HSLhsl(260, 56%, 27%)
HSVhsv(260, 72%, 42%)
CMYKcmyk(47.7%, 72%, 0%, 58%)
CIE-LABlab(19.35, 31.77, -40.48)
CIE-LCHlch(19.35, 51.46, 308.12°)
OKLaboklab(31.87% 0.0502 -0.1158)
OKLCHoklch(31.87% 0.126 293.4)
XYZxyz(4.7483, 2.8307, 14.2033)
Luminance0.0283 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E6B #516B1E
analogous
#1E2B6B #381E6B #5F1E6B
triadic
#381E6B #6B381E #1E6B38
tetradic
#381E6B #6B1E2B #516B1E #1E6B5F
square
#381E6B #6B1E2B #516B1E #1E6B5F
split-complementary
#381E6B #6B5F1E #2B6B1E
monochromatic
#0D0718 #1F113B #381E6B #512B9B #6B3BC8

Accessibility & contrast

On white

13.41
#381E6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381E6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E6B
13.41:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E6B#FFFFFF#000000##FFFFFF
##381E6B1.0013.411.5713.41
#FFFFFF13.411.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.411.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#293142
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381e6b;
/* rgb */ color: rgb(56, 30, 107);
/* oklch */ color: oklch(31.9% 0.126 293.4);
Tailwind
colors: {
  custom: {
    50: '#745c96',
    500: '#381e6b',
    950: '#000000',
  },
}
SCSS
$custom: #381e6b;
$custom-light: #745c96;
$custom-dark: #000000;
JSON
{
  "hex": "#381e6b",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 107
  },
  "hsl": {
    "h": 260.26,
    "s": 56.204,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31868,
    "c": 0.12625,
    "h": 293.4
  },
  "luminance": 0.02831
}

Semantic roles & 50–950 ramp

primary
#381E6B
secondary
#819F45
accent
#DF48AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381E6B

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

Preview Lab → · Contrast checker → · Palette generator →

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