#381E5B#381E5B

#381E5B is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.5% C 0.105 H 299.8°. Best body text is #FFFFFF at 13.95:1 contrast (WCAG AA passes).

Color values

HEX#381E5B
RGBrgb(56, 30, 91)
HSLhsl(266, 50%, 24%)
HSVhsv(266, 67%, 36%)
CMYKcmyk(38.5%, 67%, 0%, 64.3%)
CIE-LABlab(18.03, 26.99, -32.08)
CIE-LCHlch(18.03, 41.93, 310.08°)
OKLaboklab(30.5% 0.0522 -0.0912)
OKLCHoklch(30.5% 0.105 299.8)
XYZxyz(3.9830, 2.5246, 10.1730)
Luminance0.0253 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E5B #415B1E
analogous
#1E225B #381E5B #561E5B
triadic
#381E5B #5B381E #1E5B38
tetradic
#381E5B #5B1E22 #415B1E #1E5B56
square
#381E5B #5B1E22 #415B1E #1E5B56
split-complementary
#381E5B #5B561E #225B1E
monochromatic
#0E0817 #1C0F2D #381E5B #542D89 #713CB7

Accessibility & contrast

On white

13.95
#381E5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.51
#381E5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E5B
13.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E5B#FFFFFF#000000##FFFFFF
##381E5B1.0013.951.5113.95
#FFFFFF13.951.0021.001.00
#0000001.5121.001.0021.00
##FFFFFF13.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C5D
Deuteranopia (green-blind)
#062C5A
Tritanopia (blue-blind)
#302B39
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381e5b;
/* rgb */ color: rgb(56, 30, 91);
/* oklch */ color: oklch(30.5% 0.105 299.8);
Tailwind
colors: {
  custom: {
    50: '#725b8a',
    500: '#381e5b',
    950: '#000000',
  },
}
SCSS
$custom: #381e5b;
$custom-light: #725b8a;
$custom-dark: #000000;
JSON
{
  "hex": "#381e5b",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 91
  },
  "hsl": {
    "h": 265.574,
    "s": 50.413,
    "l": 23.725
  },
  "oklch": {
    "l": 0.30497,
    "c": 0.10504,
    "h": 299.8
  },
  "luminance": 0.02525
}

Semantic roles & 50–950 ramp

primary
#381E5B
secondary
#709045
accent
#DA4E9E
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381E5B

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

Preview Lab → · Contrast checker → · Palette generator →

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