#381B79#381B79

#381B79 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.148 H 289.8°. Best body text is #FFFFFF at 13.12:1 contrast (WCAG AA passes).

Color values

HEX#381B79
RGBrgb(56, 27, 121)
HSLhsl(259, 64%, 29%)
HSVhsv(259, 78%, 47%)
CMYKcmyk(53.7%, 77.7%, 0%, 52.5%)
CIE-LABlab(20.06, 37.63, -48.35)
CIE-LCHlch(20.06, 61.27, 307.89°)
OKLaboklab(32.77% 0.0499 -0.1389)
OKLCHoklch(32.77% 0.148 289.8)
XYZxyz(5.4730, 3.0049, 18.3771)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B79 #5C791B
analogous
#1B2D79 #381B79 #671B79
triadic
#381B79 #79381B #1B7938
tetradic
#381B79 #791B2D #5C791B #1B7967
square
#381B79 #791B2D #5C791B #1B7967
split-complementary
#381B79 #79671B #2D791B
monochromatic
#0C0619 #211047 #381B79 #4F26AB #6A3BD3

Accessibility & contrast

On white

13.12
#381B79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381B79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B79
13.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B79#FFFFFF#000000##FFFFFF
##381B791.0013.121.6013.12
#FFFFFF13.121.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327C
Deuteranopia (green-blind)
#002E77
Tritanopia (blue-blind)
#203549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381b79;
/* rgb */ color: rgb(56, 27, 121);
/* oklch */ color: oklch(32.8% 0.148 289.8);
Tailwind
colors: {
  custom: {
    50: '#765ba1',
    500: '#381b79',
    950: '#000000',
  },
}
SCSS
$custom: #381b79;
$custom-light: #765ba1;
$custom-dark: #000000;
JSON
{
  "hex": "#381b79",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 121
  },
  "hsl": {
    "h": 258.511,
    "s": 63.514,
    "l": 29.02
  },
  "oklch": {
    "l": 0.32773,
    "c": 0.14763,
    "h": 289.8
  },
  "luminance": 0.03005
}

Semantic roles & 50–950 ramp

primary
#381B79
secondary
#8CAD43
accent
#E741B4
background
#F7F5FA
surface
#EEE9F3
border
#C9C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381B79

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

Preview Lab → · Contrast checker → · Palette generator →

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