#381A9D#381A9D

#381A9D is a dark, vivid violet. Relative luminance 0.040; OKLCH L 36.5% C 0.191 H 281.8°. Best body text is #FFFFFF at 11.65:1 contrast (WCAG AA passes).

Color values

HEX#381A9D
RGBrgb(56, 26, 157)
HSLhsl(254, 72%, 36%)
HSVhsv(254, 83%, 62%)
CMYKcmyk(64.3%, 83.4%, 0%, 38.4%)
CIE-LABlab(23.72, 48.70, -64.83)
CIE-LCHlch(23.72, 81.08, 306.92°)
OKLaboklab(36.45% 0.0391 -0.187)
OKLCHoklch(36.45% 0.191 281.8)
XYZxyz(8.0842, 4.0133, 32.2404)
Luminance0.0401 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A9D #7F9D1A
analogous
#1A3E9D #381A9D #791A9D
triadic
#381A9D #9D381A #1A9D38
tetradic
#381A9D #9D1A3E #7F9D1A #1A9D79
square
#381A9D #9D1A3E #7F9D1A #1A9D79
split-complementary
#381A9D #9D791A #3E9D1A
monochromatic
#130934 #251168 #381A9D #4B23D2 #714FE2

Accessibility & contrast

On white

11.65
#381A9D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.80
#381A9D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A9D
11.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A9D#FFFFFF#000000##FFFFFF
##381A9D1.0011.651.8011.65
#FFFFFF11.651.0021.001.00
#0000001.8021.001.0021.00
##FFFFFF11.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003DA1
Deuteranopia (green-blind)
#00349B
Tritanopia (blue-blind)
#00435D
Achromatopsia (no color)
#383838

Design tokens & code

CSS
--color: #381a9d;
/* rgb */ color: rgb(56, 26, 157);
/* oklch */ color: oklch(36.5% 0.191 281.8);
Tailwind
colors: {
  custom: {
    50: '#7d5dbb',
    500: '#381a9d',
    950: '#000000',
  },
}
SCSS
$custom: #381a9d;
$custom-light: #7d5dbb;
$custom-dark: #000000;
JSON
{
  "hex": "#381a9d",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 157
  },
  "hsl": {
    "h": 253.74,
    "s": 71.585,
    "l": 35.882
  },
  "oklch": {
    "l": 0.36453,
    "c": 0.19109,
    "h": 281.8
  },
  "luminance": 0.04014
}

Semantic roles & 50–950 ramp

primary
#381A9D
secondary
#A9C44E
accent
#EE39C5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0412
muted
#7C7981

Preview Lab

Preview with #381A9D

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

Preview Lab → · Contrast checker → · Palette generator →

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