#381A74#381A74

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

Color values

HEX#381A74
RGBrgb(56, 26, 116)
HSLhsl(260, 63%, 28%)
HSVhsv(260, 78%, 45%)
CMYKcmyk(51.7%, 77.6%, 0%, 54.5%)
CIE-LABlab(19.39, 36.67, -46.24)
CIE-LCHlch(19.39, 59.02, 308.42°)
OKLaboklab(32.15% 0.0522 -0.1327)
OKLCHoklch(32.15% 0.143 291.5)
XYZxyz(5.1518, 2.8403, 16.7964)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A74 #56741A
analogous
#1A2974 #381A74 #651A74
triadic
#381A74 #74381A #1A7438
tetradic
#381A74 #741A29 #56741A #1A7465
square
#381A74 #741A29 #56741A #1A7465
split-complementary
#381A74 #74651A #29741A
monochromatic
#0C0619 #200F42 #381A74 #5025A6 #6A36D2

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##381A74#FFFFFF#000000##FFFFFF
##381A741.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)
#003077
Deuteranopia (green-blind)
#002D72
Tritanopia (blue-blind)
#243246
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381a74;
/* rgb */ color: rgb(56, 26, 116);
/* oklch */ color: oklch(32.2% 0.143 291.5);
Tailwind
colors: {
  custom: {
    50: '#765a9d',
    500: '#381a74',
    950: '#000000',
  },
}
SCSS
$custom: #381a74;
$custom-light: #765a9d;
$custom-dark: #000000;
JSON
{
  "hex": "#381a74",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 116
  },
  "hsl": {
    "h": 260,
    "s": 63.38,
    "l": 27.843
  },
  "oklch": {
    "l": 0.32152,
    "c": 0.14263,
    "h": 291.5
  },
  "luminance": 0.0284
}

Semantic roles & 50–950 ramp

primary
#381A74
secondary
#86A941
accent
#E641AF
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381A74

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

Preview Lab → · Contrast checker → · Palette generator →

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