#381A9A#381A9A

#381A9A is a dark, vivid violet. Relative luminance 0.039; OKLCH L 36.1% C 0.188 H 282.3°. Best body text is #FFFFFF at 11.78:1 contrast (WCAG AA passes).

Color values

HEX#381A9A
RGBrgb(56, 26, 154)
HSLhsl(254, 71%, 35%)
HSVhsv(254, 83%, 60%)
CMYKcmyk(63.6%, 83.1%, 0%, 39.6%)
CIE-LABlab(23.38, 47.83, -63.55)
CIE-LCHlch(23.38, 79.54, 306.97°)
OKLaboklab(36.12% 0.0401 -0.1833)
OKLCHoklch(36.12% 0.188 282.3)
XYZxyz(7.8312, 3.9121, 30.9080)
Luminance0.0391 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A9A #7C9A1A
analogous
#1A3C9A #381A9A #781A9A
triadic
#381A9A #9A381A #1A9A38
tetradic
#381A9A #9A1A3C #7C9A1A #1A9A78
square
#381A9A #9A1A3C #7C9A1A #1A9A78
split-complementary
#381A9A #9A781A #3C9A1A
monochromatic
#120831 #251166 #381A9A #4B23CE #704DE1

Accessibility & contrast

On white

11.78
#381A9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.78
#381A9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A9A
11.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A9A#FFFFFF#000000##FFFFFF
##381A9A1.0011.781.7811.78
#FFFFFF11.781.0021.001.00
#0000001.7821.001.0021.00
##FFFFFF11.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003C9D
Deuteranopia (green-blind)
#003398
Tritanopia (blue-blind)
#00425B
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381a9a;
/* rgb */ color: rgb(56, 26, 154);
/* oklch */ color: oklch(36.1% 0.188 282.3);
Tailwind
colors: {
  custom: {
    50: '#7d5cb9',
    500: '#381a9a',
    950: '#000000',
  },
}
SCSS
$custom: #381a9a;
$custom-light: #7d5cb9;
$custom-dark: #000000;
JSON
{
  "hex": "#381a9a",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 154
  },
  "hsl": {
    "h": 254.063,
    "s": 71.111,
    "l": 35.294
  },
  "oklch": {
    "l": 0.36122,
    "c": 0.18765,
    "h": 282.3
  },
  "luminance": 0.03913
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381A9A

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

Preview Lab → · Contrast checker → · Palette generator →

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