#381A76#381A76

#381A76 is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.145 H 290.8°. Best body text is #FFFFFF at 13.31:1 contrast (WCAG AA passes).

Color values

HEX#381A76
RGBrgb(56, 26, 118)
HSLhsl(260, 64%, 28%)
HSVhsv(260, 78%, 46%)
CMYKcmyk(52.5%, 78%, 0%, 53.7%)
CIE-LABlab(19.59, 37.26, -47.21)
CIE-LCHlch(19.59, 60.14, 308.28°)
OKLaboklab(32.35% 0.0516 -0.1356)
OKLCHoklch(32.35% 0.145 290.8)
XYZxyz(5.2694, 2.8873, 17.4157)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A76 #58761A
analogous
#1A2A76 #381A76 #661A76
triadic
#381A76 #76381A #1A7638
tetradic
#381A76 #761A2A #58761A #1A7666
square
#381A76 #761A2A #58761A #1A7666
split-complementary
#381A76 #76661A #2A761A
monochromatic
#0C0619 #200F44 #381A76 #5025A8 #6A37D3

Accessibility & contrast

On white

13.31
#381A76 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381A76 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A76
13.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A76#FFFFFF#000000##FFFFFF
##381A761.0013.311.5813.31
#FFFFFF13.311.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003179
Deuteranopia (green-blind)
#002D74
Tritanopia (blue-blind)
#233347
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381a76;
/* rgb */ color: rgb(56, 26, 118);
/* oklch */ color: oklch(32.3% 0.145 290.8);
Tailwind
colors: {
  custom: {
    50: '#765a9e',
    500: '#381a76',
    950: '#000000',
  },
}
SCSS
$custom: #381a76;
$custom-light: #765a9e;
$custom-dark: #000000;
JSON
{
  "hex": "#381a76",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 118
  },
  "hsl": {
    "h": 259.565,
    "s": 63.889,
    "l": 28.235
  },
  "oklch": {
    "l": 0.32349,
    "c": 0.14507,
    "h": 290.8
  },
  "luminance": 0.02888
}

Semantic roles & 50–950 ramp

primary
#381A76
secondary
#88AB41
accent
#E741B1
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A76

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

Preview Lab → · Contrast checker → · Palette generator →

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