#381A9F#381A9F

#381A9F is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.7% C 0.193 H 281.5°. Best body text is #FFFFFF at 11.56:1 contrast (WCAG AA passes).

Color values

HEX#381A9F
RGBrgb(56, 26, 159)
HSLhsl(254, 72%, 36%)
HSVhsv(254, 84%, 62%)
CMYKcmyk(64.8%, 83.6%, 0%, 37.6%)
CIE-LABlab(23.94, 49.28, -65.68)
CIE-LCHlch(23.94, 82.11, 306.88°)
OKLaboklab(36.68% 0.0384 -0.1895)
OKLCHoklch(36.68% 0.193 281.5)
XYZxyz(8.2563, 4.0821, 33.1470)
Luminance0.0408 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A9F #819F1A
analogous
#1A3F9F #381A9F #7B1A9F
triadic
#381A9F #9F381A #1A9F38
tetradic
#381A9F #9F1A3F #819F1A #1A9F7B
square
#381A9F #9F1A3F #819F1A #1A9F7B
split-complementary
#381A9F #9F7B1A #3F9F1A
monochromatic
#130936 #25116A #381A9F #4B23D4 #7251E3

Accessibility & contrast

On white

11.56
#381A9F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.82
#381A9F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A9F
11.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A9F#FFFFFF#000000##FFFFFF
##381A9F1.0011.561.8211.56
#FFFFFF11.561.0021.001.00
#0000001.8221.001.0021.00
##FFFFFF11.561.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381a9f;
/* rgb */ color: rgb(56, 26, 159);
/* oklch */ color: oklch(36.7% 0.193 281.5);
Tailwind
colors: {
  custom: {
    50: '#7e5dbd',
    500: '#381a9f',
    950: '#000000',
  },
}
SCSS
$custom: #381a9f;
$custom-light: #7e5dbd;
$custom-dark: #000000;
JSON
{
  "hex": "#381a9f",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 159
  },
  "hsl": {
    "h": 253.534,
    "s": 71.892,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36675,
    "c": 0.19337,
    "h": 281.5
  },
  "luminance": 0.04083
}

Semantic roles & 50–950 ramp

primary
#381A9F
secondary
#ABC550
accent
#EF39C6
background
#F8F5FB
surface
#EFE9F7
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381A9F

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

Preview Lab → · Contrast checker → · Palette generator →

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