#381F80#381F80

#381F80 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.0% C 0.152 H 287.1°. Best body text is #FFFFFF at 12.53:1 contrast (WCAG AA passes).

Color values

HEX#381F80
RGBrgb(56, 31, 128)
HSLhsl(255, 61%, 31%)
HSVhsv(255, 76%, 50%)
CMYKcmyk(56.3%, 75.8%, 0%, 49.8%)
CIE-LABlab(21.50, 37.62, -50.44)
CIE-LCHlch(21.50, 62.92, 306.71°)
OKLaboklab(34% 0.0446 -0.1451)
OKLCHoklch(34% 0.152 287.1)
XYZxyz(6.0160, 3.3789, 20.7531)
Luminance0.0338 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F80 #67801F
analogous
#1F3680 #381F80 #681F80
triadic
#381F80 #80381F #1F8038
tetradic
#381F80 #801F36 #67801F #1F8068
square
#381F80 #801F36 #67801F #1F8068
split-complementary
#381F80 #80681F #36801F
monochromatic
#0D071D #22134F #381F80 #4E2BB1 #6B47D2

Accessibility & contrast

On white

12.53
#381F80 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381F80 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F80
12.53:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F80#FFFFFF#000000##FFFFFF
##381F801.0012.531.6812.53
#FFFFFF12.531.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.531.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003683
Deuteranopia (green-blind)
#00317E
Tritanopia (blue-blind)
#19394E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381f80;
/* rgb */ color: rgb(56, 31, 128);
/* oklch */ color: oklch(34.0% 0.152 287.1);
Tailwind
colors: {
  custom: {
    50: '#775da6',
    500: '#381f80',
    950: '#000000',
  },
}
SCSS
$custom: #381f80;
$custom-light: #775da6;
$custom-dark: #000000;
JSON
{
  "hex": "#381f80",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 128
  },
  "hsl": {
    "h": 255.464,
    "s": 61.006,
    "l": 31.176
  },
  "oklch": {
    "l": 0.33996,
    "c": 0.1518,
    "h": 287.1
  },
  "luminance": 0.03379
}

Semantic roles & 50–950 ramp

primary
#381F80
secondary
#97B348
accent
#E444BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F80

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

Preview Lab → · Contrast checker → · Palette generator →

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