#381E6F#381E6F

#381E6F is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.2% C 0.131 H 292.1°. Best body text is #FFFFFF at 13.26:1 contrast (WCAG AA passes).

Color values

HEX#381E6F
RGBrgb(56, 30, 111)
HSLhsl(259, 57%, 28%)
HSVhsv(259, 73%, 44%)
CMYKcmyk(49.5%, 73%, 0%, 56.5%)
CIE-LABlab(19.71, 32.98, -42.50)
CIE-LCHlch(19.71, 53.79, 307.81°)
OKLaboklab(32.23% 0.0494 -0.1218)
OKLCHoklch(32.23% 0.131 292.1)
XYZxyz(4.9636, 2.9168, 15.3373)
Luminance0.0292 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E6F #556F1E
analogous
#1E2D6F #381E6F #601E6F
triadic
#381E6F #6F381E #1E6F38
tetradic
#381E6F #6F1E2D #556F1E #1E6F60
square
#381E6F #6F1E2D #556F1E #1E6F60
split-complementary
#381E6F #6F601E #2D6F1E
monochromatic
#0C0718 #20113F #381E6F #502B9F #6A3DCB

Accessibility & contrast

On white

13.26
#381E6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381E6F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E6F
13.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E6F#FFFFFF#000000##FFFFFF
##381E6F1.0013.261.5813.26
#FFFFFF13.261.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003171
Deuteranopia (green-blind)
#002E6D
Tritanopia (blue-blind)
#273244
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381e6f;
/* rgb */ color: rgb(56, 30, 111);
/* oklch */ color: oklch(32.2% 0.131 292.1);
Tailwind
colors: {
  custom: {
    50: '#745c99',
    500: '#381e6f',
    950: '#000000',
  },
}
SCSS
$custom: #381e6f;
$custom-light: #745c99;
$custom-dark: #000000;
JSON
{
  "hex": "#381e6f",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 111
  },
  "hsl": {
    "h": 259.259,
    "s": 57.447,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32232,
    "c": 0.13143,
    "h": 292.1
  },
  "luminance": 0.02917
}

Semantic roles & 50–950 ramp

primary
#381E6F
secondary
#85A346
accent
#E147AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381E6F

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

Preview Lab → · Contrast checker → · Palette generator →

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