#381B70#381B70

#381B70 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.9% C 0.137 H 292.5°. Best body text is #FFFFFF at 13.47:1 contrast (WCAG AA passes).

Color values

HEX#381B70
RGBrgb(56, 27, 112)
HSLhsl(260, 61%, 27%)
HSVhsv(260, 76%, 44%)
CMYKcmyk(50%, 75.9%, 0%, 56.1%)
CIE-LABlab(19.20, 34.95, -43.97)
CIE-LCHlch(19.20, 56.17, 308.48°)
OKLaboklab(31.9% 0.0523 -0.1261)
OKLCHoklch(31.9% 0.137 292.5)
XYZxyz(4.9466, 2.7943, 15.6048)
Luminance0.0279 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B70 #53701B
analogous
#1B2870 #381B70 #631B70
triadic
#381B70 #70381B #1B7038
tetradic
#381B70 #701B28 #53701B #1B7063
square
#381B70 #701B28 #53701B #1B7063
split-complementary
#381B70 #70631B #28701B
monochromatic
#0C0619 #1F0F3F #381B70 #5127A1 #6B37CF

Accessibility & contrast

On white

13.47
#381B70 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.56
#381B70 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B70
13.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B70#FFFFFF#000000##FFFFFF
##381B701.0013.471.5613.47
#FFFFFF13.471.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003072
Deuteranopia (green-blind)
#002D6E
Tritanopia (blue-blind)
#273144
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381b70;
/* rgb */ color: rgb(56, 27, 112);
/* oklch */ color: oklch(31.9% 0.137 292.5);
Tailwind
colors: {
  custom: {
    50: '#755a9a',
    500: '#381b70',
    950: '#000000',
  },
}
SCSS
$custom: #381b70;
$custom-light: #755a9a;
$custom-dark: #000000;
JSON
{
  "hex": "#381b70",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 112
  },
  "hsl": {
    "h": 260.471,
    "s": 61.151,
    "l": 27.255
  },
  "oklch": {
    "l": 0.319,
    "c": 0.1365,
    "h": 292.5
  },
  "luminance": 0.02794
}

Semantic roles & 50–950 ramp

primary
#381B70
secondary
#83A542
accent
#E444AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B70

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

Preview Lab → · Contrast checker → · Palette generator →

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