#381A7B#381A7B

#381A7B is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.8% C 0.151 H 289.4°. Best body text is #FFFFFF at 13.11:1 contrast (WCAG AA passes).

Color values

HEX#381A7B
RGBrgb(56, 26, 123)
HSLhsl(259, 65%, 29%)
HSVhsv(259, 79%, 48%)
CMYKcmyk(54.5%, 78.9%, 0%, 51.8%)
CIE-LABlab(20.08, 38.74, -49.60)
CIE-LCHlch(20.08, 62.93, 307.99°)
OKLaboklab(32.85% 0.0502 -0.1426)
OKLCHoklch(32.85% 0.151 289.4)
XYZxyz(5.5744, 3.0093, 19.0222)
Luminance0.0301 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A7B #5D7B1A
analogous
#1A2C7B #381A7B #691A7B
triadic
#381A7B #7B381A #1A7B38
tetradic
#381A7B #7B1A2C #5D7B1A #1A7B69
square
#381A7B #7B1A2C #5D7B1A #1A7B69
split-complementary
#381A7B #7B691A #2C7B1A
monochromatic
#0C0519 #210F48 #381A7B #4F25AE #6A3AD5

Accessibility & contrast

On white

13.11
#381A7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.60
#381A7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A7B
13.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A7B#FFFFFF#000000##FFFFFF
##381A7B1.0013.111.6013.11
#FFFFFF13.111.0021.001.00
#0000001.6021.001.0021.00
##FFFFFF13.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00327E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#1F3549
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381a7b;
/* rgb */ color: rgb(56, 26, 123);
/* oklch */ color: oklch(32.8% 0.151 289.4);
Tailwind
colors: {
  custom: {
    50: '#775aa2',
    500: '#381a7b',
    950: '#000000',
  },
}
SCSS
$custom: #381a7b;
$custom-light: #775aa2;
$custom-dark: #000000;
JSON
{
  "hex": "#381a7b",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 123
  },
  "hsl": {
    "h": 258.557,
    "s": 65.101,
    "l": 29.216
  },
  "oklch": {
    "l": 0.32846,
    "c": 0.15116,
    "h": 289.4
  },
  "luminance": 0.0301
}

Semantic roles & 50–950 ramp

primary
#381A7B
secondary
#8DAF42
accent
#E840B4
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381A7B

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

Preview Lab → · Contrast checker → · Palette generator →

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