#381A9B#381A9B

#381A9B is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.2% C 0.189 H 282.2°. Best body text is #FFFFFF at 11.74:1 contrast (WCAG AA passes).

Color values

HEX#381A9B
RGBrgb(56, 26, 155)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 61%)
CMYKcmyk(63.9%, 83.2%, 0%, 39.2%)
CIE-LABlab(23.49, 48.12, -63.98)
CIE-LCHlch(23.49, 80.06, 306.95°)
OKLaboklab(36.23% 0.0398 -0.1846)
OKLCHoklch(36.23% 0.189 282.2)
XYZxyz(7.9148, 3.9455, 31.3485)
Luminance0.0395 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A9B #7D9B1A
analogous
#1A3D9B #381A9B #781A9B
triadic
#381A9B #9B381A #1A9B38
tetradic
#381A9B #9B1A3D #7D9B1A #1A9B78
square
#381A9B #9B1A3D #7D9B1A #1A9B78
split-complementary
#381A9B #9B781A #3D9B1A
monochromatic
#120832 #251167 #381A9B #4B23CF #704EE1

Accessibility & contrast

On white

11.74
#381A9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.79
#381A9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A9B
11.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A9B#FFFFFF#000000##FFFFFF
##381A9B1.0011.741.7911.74
#FFFFFF11.741.0021.001.00
#0000001.7921.001.0021.00
##FFFFFF11.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9E
Deuteranopia (green-blind)
#003399
Tritanopia (blue-blind)
#00425C
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381a9b;
/* rgb */ color: rgb(56, 26, 155);
/* oklch */ color: oklch(36.2% 0.189 282.2);
Tailwind
colors: {
  custom: {
    50: '#7d5cba',
    500: '#381a9b',
    950: '#000000',
  },
}
SCSS
$custom: #381a9b;
$custom-light: #7d5cba;
$custom-dark: #000000;
JSON
{
  "hex": "#381a9b",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 155
  },
  "hsl": {
    "h": 253.953,
    "s": 71.271,
    "l": 35.49
  },
  "oklch": {
    "l": 0.36232,
    "c": 0.1888,
    "h": 282.2
  },
  "luminance": 0.03946
}

Semantic roles & 50–950 ramp

primary
#381A9B
secondary
#A8C44D
accent
#EE3AC4
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381A9B

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

Preview Lab → · Contrast checker → · Palette generator →

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