#381B7C#381B7C

#381B7C is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.1% C 0.151 H 288.9°. Best body text is #FFFFFF at 13.00:1 contrast (WCAG AA passes).

Color values

HEX#381B7C
RGBrgb(56, 27, 124)
HSLhsl(258, 64%, 30%)
HSVhsv(258, 78%, 49%)
CMYKcmyk(54.8%, 78.2%, 0%, 51.4%)
CIE-LABlab(20.36, 38.53, -49.78)
CIE-LCHlch(20.36, 62.94, 307.74°)
OKLaboklab(33.07% 0.0491 -0.1431)
OKLCHoklch(33.07% 0.151 288.9)
XYZxyz(5.6598, 3.0796, 19.3611)
Luminance0.0308 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B7C #5F7C1B
analogous
#1B2F7C #381B7C #691B7C
triadic
#381B7C #7C381B #1B7C38
tetradic
#381B7C #7C1B2F #5F7C1B #1B7C69
square
#381B7C #7C1B2F #5F7C1B #1B7C69
split-complementary
#381B7C #7C691B #2F7C1B
monochromatic
#0B0519 #21104A #381B7C #4F26AE #6A3DD5

Accessibility & contrast

On white

13.00
#381B7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381B7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B7C
13.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B7C#FFFFFF#000000##FFFFFF
##381B7C1.0013.001.6213.00
#FFFFFF13.001.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF13.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337F
Deuteranopia (green-blind)
#002F7A
Tritanopia (blue-blind)
#1E364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381b7c;
/* rgb */ color: rgb(56, 27, 124);
/* oklch */ color: oklch(33.1% 0.151 288.9);
Tailwind
colors: {
  custom: {
    50: '#775ba3',
    500: '#381b7c',
    950: '#000000',
  },
}
SCSS
$custom: #381b7c;
$custom-light: #775ba3;
$custom-dark: #000000;
JSON
{
  "hex": "#381b7c",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 124
  },
  "hsl": {
    "h": 257.938,
    "s": 64.238,
    "l": 29.608
  },
  "oklch": {
    "l": 0.33072,
    "c": 0.15129,
    "h": 288.9
  },
  "luminance": 0.0308
}

Semantic roles & 50–950 ramp

primary
#381B7C
secondary
#8FB043
accent
#E741B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381B7C

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

Preview Lab → · Contrast checker → · Palette generator →

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