#381C6B#381C6B

#381C6B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.6% C 0.129 H 294.0°. Best body text is #FFFFFF at 13.58:1 contrast (WCAG AA passes).

Color values

HEX#381C6B
RGBrgb(56, 28, 107)
HSLhsl(261, 59%, 26%)
HSVhsv(261, 74%, 42%)
CMYKcmyk(47.7%, 73.8%, 0%, 58%)
CIE-LABlab(18.94, 32.91, -41.15)
CIE-LCHlch(18.94, 52.69, 308.65°)
OKLaboklab(31.57% 0.0523 -0.1178)
OKLCHoklch(31.57% 0.129 294)
XYZxyz(4.6993, 2.7327, 14.1869)
Luminance0.0273 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C6B #4F6B1C
analogous
#1C286B #381C6B #601C6B
triadic
#381C6B #6B381C #1C6B38
tetradic
#381C6B #6B1C28 #4F6B1C #1C6B60
square
#381C6B #6B1C28 #4F6B1C #1C6B60
split-complementary
#381C6B #6B601C #286B1C
monochromatic
#0D0618 #1F0F3A #381C6B #51299C #6B37CB

Accessibility & contrast

On white

13.58
#381C6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381C6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C6B
13.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C6B#FFFFFF#000000##FFFFFF
##381C6B1.0013.581.5513.58
#FFFFFF13.581.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6D
Deuteranopia (green-blind)
#002D69
Tritanopia (blue-blind)
#293041
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381c6b;
/* rgb */ color: rgb(56, 28, 107);
/* oklch */ color: oklch(31.6% 0.129 294.0);
Tailwind
colors: {
  custom: {
    50: '#745b96',
    500: '#381c6b',
    950: '#000000',
  },
}
SCSS
$custom: #381c6b;
$custom-light: #745b96;
$custom-dark: #000000;
JSON
{
  "hex": "#381c6b",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 107
  },
  "hsl": {
    "h": 261.266,
    "s": 58.519,
    "l": 26.471
  },
  "oklch": {
    "l": 0.31573,
    "c": 0.12892,
    "h": 294
  },
  "luminance": 0.02733
}

Semantic roles & 50–950 ramp

primary
#381C6B
secondary
#7FA043
accent
#E246AB
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381C6B

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

Preview Lab → · Contrast checker → · Palette generator →

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