#381E5F#381E5F

#381E5F is a dark, moderate violet. Relative luminance 0.026; OKLCH L 30.8% C 0.110 H 298.0°. Best body text is #FFFFFF at 13.82:1 contrast (WCAG AA passes).

Color values

HEX#381E5F
RGBrgb(56, 30, 95)
HSLhsl(264, 52%, 25%)
HSVhsv(264, 68%, 37%)
CMYKcmyk(41.1%, 68.4%, 0%, 62.7%)
CIE-LABlab(18.35, 28.17, -34.23)
CIE-LCHlch(18.35, 44.33, 309.45°)
OKLaboklab(30.83% 0.0518 -0.0975)
OKLCHoklch(30.83% 0.11 298)
XYZxyz(4.1602, 2.5955, 11.1060)
Luminance0.0260 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E5F #455F1E
analogous
#1E255F #381E5F #591E5F
triadic
#381E5F #5F381E #1E5F38
tetradic
#381E5F #5F1E25 #455F1E #1E5F59
square
#381E5F #5F1E25 #455F1E #1E5F59
split-complementary
#381E5F #5F591E #255F1E
monochromatic
#0E0717 #1D0F30 #381E5F #532D8E #6F3BBC

Accessibility & contrast

On white

13.82
#381E5F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381E5F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E5F
13.82:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E5F#FFFFFF#000000##FFFFFF
##381E5F1.0013.821.5213.82
#FFFFFF13.821.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.821.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D61
Deuteranopia (green-blind)
#002C5E
Tritanopia (blue-blind)
#2F2D3B
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381e5f;
/* rgb */ color: rgb(56, 30, 95);
/* oklch */ color: oklch(30.8% 0.110 298.0);
Tailwind
colors: {
  custom: {
    50: '#725b8d',
    500: '#381e5f',
    950: '#000000',
  },
}
SCSS
$custom: #381e5f;
$custom-light: #725b8d;
$custom-dark: #000000;
JSON
{
  "hex": "#381e5f",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 95
  },
  "hsl": {
    "h": 264,
    "s": 52,
    "l": 24.51
  },
  "oklch": {
    "l": 0.30826,
    "c": 0.11041,
    "h": 298
  },
  "luminance": 0.02596
}

Semantic roles & 50–950 ramp

primary
#381E5F
secondary
#749445
accent
#DB4CA2
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381E5F

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

Preview Lab → · Contrast checker → · Palette generator →

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