#381C81#381C81

#381C81 is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.156 H 287.4°. Best body text is #FFFFFF at 12.72:1 contrast (WCAG AA passes).

Color values

HEX#381C81
RGBrgb(56, 28, 129)
HSLhsl(257, 64%, 31%)
HSVhsv(257, 78%, 51%)
CMYKcmyk(56.6%, 78.3%, 0%, 49.4%)
CIE-LABlab(21.04, 39.51, -51.83)
CIE-LCHlch(21.04, 65.17, 307.32°)
OKLaboklab(33.7% 0.0468 -0.1491)
OKLCHoklch(33.7% 0.156 287.4)
XYZxyz(6.0074, 3.2559, 21.0765)
Luminance0.0326 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381C81 #65811C
analogous
#1C3281 #381C81 #6A1C81
triadic
#381C81 #81381C #1C8138
tetradic
#381C81 #811C32 #65811C #1C816A
square
#381C81 #811C32 #65811C #1C816A
split-complementary
#381C81 #816A1C #32811C
monochromatic
#0C061C #22114F #381C81 #4E27B3 #6B42D6

Accessibility & contrast

On white

12.72
#381C81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.65
#381C81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381C81
12.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381C81#FFFFFF#000000##FFFFFF
##381C811.0012.721.6512.72
#FFFFFF12.721.0021.001.00
#0000001.6521.001.0021.00
##FFFFFF12.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003584
Deuteranopia (green-blind)
#00307F
Tritanopia (blue-blind)
#19384D
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381c81;
/* rgb */ color: rgb(56, 28, 129);
/* oklch */ color: oklch(33.7% 0.156 287.4);
Tailwind
colors: {
  custom: {
    50: '#785ca7',
    500: '#381c81',
    950: '#000000',
  },
}
SCSS
$custom: #381c81;
$custom-light: #785ca7;
$custom-dark: #000000;
JSON
{
  "hex": "#381c81",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 129
  },
  "hsl": {
    "h": 256.634,
    "s": 64.331,
    "l": 30.784
  },
  "oklch": {
    "l": 0.33702,
    "c": 0.15631,
    "h": 287.4
  },
  "luminance": 0.03256
}

Semantic roles & 50–950 ramp

primary
#381C81
secondary
#95B444
accent
#E740B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381C81

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

Preview Lab → · Contrast checker → · Palette generator →

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