#381B72#381B72

#381B72 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.1% C 0.139 H 291.9°. Best body text is #FFFFFF at 13.39:1 contrast (WCAG AA passes).

Color values

HEX#381B72
RGBrgb(56, 27, 114)
HSLhsl(260, 62%, 28%)
HSVhsv(260, 76%, 45%)
CMYKcmyk(50.9%, 76.3%, 0%, 55.3%)
CIE-LABlab(19.39, 35.55, -44.96)
CIE-LCHlch(19.39, 57.31, 308.33°)
OKLaboklab(32.09% 0.0518 -0.129)
OKLCHoklch(32.09% 0.139 291.9)
XYZxyz(5.0592, 2.8393, 16.1978)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B72 #55721B
analogous
#1B2972 #381B72 #631B72
triadic
#381B72 #72381B #1B7238
tetradic
#381B72 #721B29 #55721B #1B7263
square
#381B72 #721B29 #55721B #1B7263
split-complementary
#381B72 #72631B #29721B
monochromatic
#0C0619 #200F41 #381B72 #5027A3 #6A38D0

Accessibility & contrast

On white

13.39
#381B72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381B72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B72
13.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B72#FFFFFF#000000##FFFFFF
##381B721.0013.391.5713.39
#FFFFFF13.391.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003075
Deuteranopia (green-blind)
#002D70
Tritanopia (blue-blind)
#253245
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381b72;
/* rgb */ color: rgb(56, 27, 114);
/* oklch */ color: oklch(32.1% 0.139 291.9);
Tailwind
colors: {
  custom: {
    50: '#755a9b',
    500: '#381b72',
    950: '#000000',
  },
}
SCSS
$custom: #381b72;
$custom-light: #755a9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381b72",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 114
  },
  "hsl": {
    "h": 260,
    "s": 61.702,
    "l": 27.647
  },
  "oklch": {
    "l": 0.32091,
    "c": 0.13899,
    "h": 291.9
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#381B72
secondary
#85A742
accent
#E543AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B72

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

Preview Lab → · Contrast checker → · Palette generator →

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