#381A80#381A80

#381A80 is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.4% C 0.157 H 288.0°. Best body text is #FFFFFF at 12.90:1 contrast (WCAG AA passes).

Color values

HEX#381A80
RGBrgb(56, 26, 128)
HSLhsl(258, 66%, 30%)
HSVhsv(258, 80%, 50%)
CMYKcmyk(56.3%, 79.7%, 0%, 49.8%)
CIE-LABlab(20.59, 40.22, -51.94)
CIE-LCHlch(20.59, 65.69, 307.75°)
OKLaboklab(33.35% 0.0487 -0.1494)
OKLCHoklch(33.35% 0.157 288)
XYZxyz(5.8954, 3.1378, 20.7129)
Luminance0.0314 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A80 #62801A
analogous
#1A2F80 #381A80 #6B1A80
triadic
#381A80 #80381A #1A8038
tetradic
#381A80 #801A2F #62801A #1A806B
square
#381A80 #801A2F #62801A #1A806B
split-complementary
#381A80 #806B1A #2F801A
monochromatic
#0B051A #22104D #381A80 #4E24B3 #6A3DD8

Accessibility & contrast

On white

12.90
#381A80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381A80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A80
12.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A80#FFFFFF#000000##FFFFFF
##381A801.0012.901.6312.90
#FFFFFF12.901.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003483
Deuteranopia (green-blind)
#002F7E
Tritanopia (blue-blind)
#1A374C
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381a80;
/* rgb */ color: rgb(56, 26, 128);
/* oklch */ color: oklch(33.4% 0.157 288.0);
Tailwind
colors: {
  custom: {
    50: '#785ba6',
    500: '#381a80',
    950: '#000000',
  },
}
SCSS
$custom: #381a80;
$custom-light: #785ba6;
$custom-dark: #000000;
JSON
{
  "hex": "#381a80",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 128
  },
  "hsl": {
    "h": 257.647,
    "s": 66.234,
    "l": 30.196
  },
  "oklch": {
    "l": 0.33354,
    "c": 0.15718,
    "h": 288
  },
  "luminance": 0.03138
}

Semantic roles & 50–950 ramp

primary
#381A80
secondary
#92B442
accent
#E93FB7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381A80

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

Preview Lab → · Contrast checker → · Palette generator →

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