#381C5E#381C5E

#381C5E is a dark, moderate violet. Relative luminance 0.025; OKLCH L 30.4% C 0.112 H 299.1°. Best body text is #FFFFFF at 14.04:1 contrast (WCAG AA passes).

Color values

HEX#381C5E
RGBrgb(56, 28, 94)
HSLhsl(265, 54%, 24%)
HSVhsv(265, 70%, 37%)
CMYKcmyk(40.4%, 70.2%, 0%, 63.1%)
CIE-LABlab(17.83, 29.07, -34.41)
CIE-LCHlch(17.83, 45.05, 310.19°)
OKLaboklab(30.43% 0.0545 -0.098)
OKLCHoklch(30.43% 0.112 299.1)
XYZxyz(4.0660, 2.4794, 10.8519)
Luminance0.0248 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C5E #425E1C
analogous
#1C215E #381C5E #591C5E
triadic
#381C5E #5E381C #1C5E38
tetradic
#381C5E #5E1C21 #425E1C #1C5E59
square
#381C5E #5E1C21 #425E1C #1C5E59
split-complementary
#381C5E #5E591C #215E1C
monochromatic
#0E0718 #1C0E2F #381C5E #542A8D #7038BC

Accessibility & contrast

On white

14.04
#381C5E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.50
#381C5E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C5E
14.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C5E#FFFFFF#000000##FFFFFF
##381C5E1.0014.041.5014.04
#FFFFFF14.041.0021.001.00
#0000001.5021.001.0021.00
##FFFFFF14.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002C60
Deuteranopia (green-blind)
#002B5D
Tritanopia (blue-blind)
#2F2B3A
Achromatopsia (no color)
#2C2C2C

Design tokens & code

CSS
--color: #381c5e;
/* rgb */ color: rgb(56, 28, 94);
/* oklch */ color: oklch(30.4% 0.112 299.1);
Tailwind
colors: {
  custom: {
    50: '#725a8c',
    500: '#381c5e',
    950: '#000000',
  },
}
SCSS
$custom: #381c5e;
$custom-light: #725a8c;
$custom-dark: #000000;
JSON
{
  "hex": "#381c5e",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 94
  },
  "hsl": {
    "h": 265.455,
    "s": 54.098,
    "l": 23.922
  },
  "oklch": {
    "l": 0.30425,
    "c": 0.11213,
    "h": 299.1
  },
  "luminance": 0.02479
}

Semantic roles & 50–950 ramp

primary
#381C5E
secondary
#719342
accent
#DD4A9F
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381C5E

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

Preview Lab → · Contrast checker → · Palette generator →

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