#381B74#381B74

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

Color values

HEX#381B74
RGBrgb(56, 27, 116)
HSLhsl(260, 62%, 28%)
HSVhsv(260, 77%, 45%)
CMYKcmyk(51.7%, 76.7%, 0%, 54.5%)
CIE-LABlab(19.58, 36.14, -45.94)
CIE-LCHlch(19.58, 58.45, 308.20°)
OKLaboklab(32.28% 0.0513 -0.1319)
OKLCHoklch(32.28% 0.141 291.2)
XYZxyz(5.1743, 2.8854, 16.8039)
Luminance0.0289 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B74 #57741B
analogous
#1B2A74 #381B74 #641B74
triadic
#381B74 #74381B #1B7438
tetradic
#381B74 #741B2A #57741B #1B7464
square
#381B74 #741B2A #57741B #1B7464
split-complementary
#381B74 #74641B #2A741B
monochromatic
#0C0619 #200F42 #381B74 #5027A6 #6A39D1

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381B74#FFFFFF#000000##FFFFFF
##381B741.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)
#003177
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#243346
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381b74;
/* rgb */ color: rgb(56, 27, 116);
/* oklch */ color: oklch(32.3% 0.141 291.2);
Tailwind
colors: {
  custom: {
    50: '#755a9d',
    500: '#381b74',
    950: '#000000',
  },
}
SCSS
$custom: #381b74;
$custom-light: #755a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#381b74",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 116
  },
  "hsl": {
    "h": 259.551,
    "s": 62.238,
    "l": 28.039
  },
  "oklch": {
    "l": 0.32284,
    "c": 0.14147,
    "h": 291.2
  },
  "luminance": 0.02886
}

Semantic roles & 50–950 ramp

primary
#381B74
secondary
#87A942
accent
#E542B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B74

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

Preview Lab → · Contrast checker → · Palette generator →

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