#381A9E#381A9E

#381A9E is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.6% C 0.192 H 281.6°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#381A9E
RGBrgb(56, 26, 158)
HSLhsl(254, 72%, 36%)
HSVhsv(254, 84%, 62%)
CMYKcmyk(64.6%, 83.5%, 0%, 38%)
CIE-LABlab(23.83, 48.99, -65.25)
CIE-LCHlch(23.83, 81.60, 306.90°)
OKLaboklab(36.56% 0.0388 -0.1883)
OKLCHoklch(36.56% 0.192 281.6)
XYZxyz(8.1699, 4.0475, 32.6918)
Luminance0.0405 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A9E #809E1A
analogous
#1A3E9E #381A9E #7A1A9E
triadic
#381A9E #9E381A #1A9E38
tetradic
#381A9E #9E1A3E #809E1A #1A9E7A
square
#381A9E #9E1A3E #809E1A #1A9E7A
split-complementary
#381A9E #9E7A1A #3E9E1A
monochromatic
#130935 #251169 #381A9E #4B23D3 #7150E2

Accessibility & contrast

On white

11.60
#381A9E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#381A9E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A9E
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A9E#FFFFFF#000000##FFFFFF
##381A9E1.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA2
Deuteranopia (green-blind)
#00349C
Tritanopia (blue-blind)
#00445E
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381a9e;
/* rgb */ color: rgb(56, 26, 158);
/* oklch */ color: oklch(36.6% 0.192 281.6);
Tailwind
colors: {
  custom: {
    50: '#7d5dbc',
    500: '#381a9e',
    950: '#000000',
  },
}
SCSS
$custom: #381a9e;
$custom-light: #7d5dbc;
$custom-dark: #000000;
JSON
{
  "hex": "#381a9e",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 158
  },
  "hsl": {
    "h": 253.636,
    "s": 71.739,
    "l": 36.078
  },
  "oklch": {
    "l": 0.36564,
    "c": 0.19223,
    "h": 281.6
  },
  "luminance": 0.04048
}

Semantic roles & 50–950 ramp

primary
#381A9E
secondary
#AAC54F
accent
#EE39C5
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381A9E

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

Preview Lab → · Contrast checker → · Palette generator →

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