#381A8D#381A8D

#381A8D is a dark, vivid violet. Relative luminance 0.035; OKLCH L 34.7% C 0.173 H 284.9°. Best body text is #FFFFFF at 12.35:1 contrast (WCAG AA passes).

Color values

HEX#381A8D
RGBrgb(56, 26, 141)
HSLhsl(256, 69%, 33%)
HSVhsv(256, 82%, 55%)
CMYKcmyk(60.3%, 81.6%, 0%, 44.7%)
CIE-LABlab(21.95, 44.05, -57.86)
CIE-LCHlch(21.95, 72.72, 307.28°)
OKLaboklab(34.71% 0.0445 -0.1667)
OKLCHoklch(34.71% 0.173 284.9)
XYZxyz(6.8065, 3.5022, 25.5115)
Luminance0.0350 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A8D #6F8D1A
analogous
#1A368D #381A8D #711A8D
triadic
#381A8D #8D381A #1A8D38
tetradic
#381A8D #8D1A36 #6F8D1A #1A8D71
square
#381A8D #8D1A36 #6F8D1A #1A8D71
split-complementary
#381A8D #8D711A #368D1A
monochromatic
#0F0726 #231059 #381A8D #4D24C1 #6C45DD

Accessibility & contrast

On white

12.35
#381A8D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.70
#381A8D on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A8D
12.35:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A8D#FFFFFF#000000##FFFFFF
##381A8D1.0012.351.7012.35
#FFFFFF12.351.0021.001.00
#0000001.7021.001.0021.00
##FFFFFF12.351.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003890
Deuteranopia (green-blind)
#00318B
Tritanopia (blue-blind)
#043C54
Achromatopsia (no color)
#353535

Design tokens & code

CSS
--color: #381a8d;
/* rgb */ color: rgb(56, 26, 141);
/* oklch */ color: oklch(34.7% 0.173 284.9);
Tailwind
colors: {
  custom: {
    50: '#7a5baf',
    500: '#381a8d',
    950: '#000000',
  },
}
SCSS
$custom: #381a8d;
$custom-light: #7a5baf;
$custom-dark: #000000;
JSON
{
  "hex": "#381a8d",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 141
  },
  "hsl": {
    "h": 255.652,
    "s": 68.862,
    "l": 32.745
  },
  "oklch": {
    "l": 0.34713,
    "c": 0.17258,
    "h": 284.9
  },
  "luminance": 0.03503
}

Semantic roles & 50–950 ramp

primary
#381A8D
secondary
#9EBE45
accent
#EC3CBE
background
#F7F5FA
surface
#EEE9F5
border
#C9C5CF
text
#0A0411
muted
#7C7980

Preview Lab

Preview with #381A8D

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

Preview Lab → · Contrast checker → · Palette generator →

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