#381C68#381C68

#381C68 is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.125 H 295.0°. Best body text is #FFFFFF at 13.69:1 contrast (WCAG AA passes).

Color values

HEX#381C68
RGBrgb(56, 28, 104)
HSLhsl(262, 58%, 26%)
HSVhsv(262, 73%, 41%)
CMYKcmyk(46.2%, 73.1%, 0%, 59.2%)
CIE-LABlab(18.67, 32.02, -39.63)
CIE-LCHlch(18.67, 50.95, 308.94°)
OKLaboklab(31.3% 0.0529 -0.1133)
OKLCHoklch(31.3% 0.125 295)
XYZxyz(4.5442, 2.6706, 13.3701)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C68 #4C681C
analogous
#1C2668 #381C68 #5E1C68
triadic
#381C68 #68381C #1C6838
tetradic
#381C68 #681C26 #4C681C #1C685E
square
#381C68 #681C26 #4C681C #1C685E
split-complementary
#381C68 #685E1C #26681C
monochromatic
#0D0618 #1E0F38 #381C68 #522998 #6C36C8

Accessibility & contrast

On white

13.69
#381C68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381C68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C68
13.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C68#FFFFFF#000000##FFFFFF
##381C681.0013.691.5313.69
#FFFFFF13.691.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6A
Deuteranopia (green-blind)
#002C66
Tritanopia (blue-blind)
#2B2F3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381c68;
/* rgb */ color: rgb(56, 28, 104);
/* oklch */ color: oklch(31.3% 0.125 295.0);
Tailwind
colors: {
  custom: {
    50: '#745a94',
    500: '#381c68',
    950: '#000000',
  },
}
SCSS
$custom: #381c68;
$custom-light: #745a94;
$custom-dark: #000000;
JSON
{
  "hex": "#381c68",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 104
  },
  "hsl": {
    "h": 262.105,
    "s": 57.576,
    "l": 25.882
  },
  "oklch": {
    "l": 0.313,
    "c": 0.12509,
    "h": 295
  },
  "luminance": 0.02671
}

Semantic roles & 50–950 ramp

primary
#381C68
secondary
#7C9D43
accent
#E147A8
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381C68

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

Preview Lab → · Contrast checker → · Palette generator →

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