#381B71#381B71

#381B71 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.138 H 292.2°. Best body text is #FFFFFF at 13.43:1 contrast (WCAG AA passes).

Color values

HEX#381B71
RGBrgb(56, 27, 113)
HSLhsl(260, 61%, 27%)
HSVhsv(260, 76%, 44%)
CMYKcmyk(50.4%, 76.1%, 0%, 55.7%)
CIE-LABlab(19.29, 35.25, -44.47)
CIE-LCHlch(19.29, 56.74, 308.40°)
OKLaboklab(32% 0.052 -0.1275)
OKLCHoklch(32% 0.138 292.2)
XYZxyz(5.0026, 2.8167, 15.8997)
Luminance0.0282 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B71 #54711B
analogous
#1B2971 #381B71 #631B71
triadic
#381B71 #71381B #1B7138
tetradic
#381B71 #711B29 #54711B #1B7163
square
#381B71 #711B29 #54711B #1B7163
split-complementary
#381B71 #71631B #29711B
monochromatic
#0C0619 #200F40 #381B71 #5027A2 #6A37CF

Accessibility & contrast

On white

13.43
#381B71 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B71
13.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B71#FFFFFF#000000##FFFFFF
##381B711.0013.431.5613.43
#FFFFFF13.431.0021.001.00
#0000001.5621.001.0021.00
##FFFFFF13.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003073
Deuteranopia (green-blind)
#002D6F
Tritanopia (blue-blind)
#263244
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381b71;
/* rgb */ color: rgb(56, 27, 113);
/* oklch */ color: oklch(32.0% 0.138 292.2);
Tailwind
colors: {
  custom: {
    50: '#755a9b',
    500: '#381b71',
    950: '#000000',
  },
}
SCSS
$custom: #381b71;
$custom-light: #755a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381b71",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 113
  },
  "hsl": {
    "h": 260.233,
    "s": 61.429,
    "l": 27.451
  },
  "oklch": {
    "l": 0.31995,
    "c": 0.13775,
    "h": 292.2
  },
  "luminance": 0.02817
}

Semantic roles & 50–950 ramp

primary
#381B71
secondary
#84A642
accent
#E543AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B71

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

Preview Lab → · Contrast checker → · Palette generator →

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