#381FA0#381FA0

#381FA0 is a dark, vivid violet. Relative luminance 0.044; OKLCH L 37.3% C 0.190 H 280.8°. Best body text is #FFFFFF at 11.22:1 contrast (WCAG AA passes).

Color values

HEX#381FA0
RGBrgb(56, 31, 160)
HSLhsl(252, 68%, 37%)
HSVhsv(252, 81%, 63%)
CMYKcmyk(65%, 80.6%, 0%, 37.3%)
CIE-LABlab(24.82, 47.32, -64.83)
CIE-LCHlch(24.82, 80.27, 306.13°)
OKLaboklab(37.32% 0.0356 -0.1871)
OKLCHoklch(37.32% 0.19 280.8)
XYZxyz(8.4640, 4.3581, 33.6461)
Luminance0.0436 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FA0 #87A01F
analogous
#1F46A0 #381FA0 #791FA0
triadic
#381FA0 #A0381F #1FA038
tetradic
#381FA0 #A01F46 #87A01F #1FA079
square
#381FA0 #A01F46 #87A01F #1FA079
split-complementary
#381FA0 #A0791F #46A01F
monochromatic
#140B39 #26156D #381FA0 #4A29D3 #745ADF

Accessibility & contrast

On white

11.22
#381FA0 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.87
#381FA0 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381FA0
11.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FA0#FFFFFF#000000##FFFFFF
##381FA01.0011.221.8711.22
#FFFFFF11.221.0021.001.00
#0000001.8721.001.0021.00
##FFFFFF11.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003FA4
Deuteranopia (green-blind)
#00369E
Tritanopia (blue-blind)
#004660
Achromatopsia (no color)
#3B3B3B

Design tokens & code

CSS
--color: #381fa0;
/* rgb */ color: rgb(56, 31, 160);
/* oklch */ color: oklch(37.3% 0.190 280.8);
Tailwind
colors: {
  custom: {
    50: '#7d5fbd',
    500: '#381fa0',
    950: '#000000',
  },
}
SCSS
$custom: #381fa0;
$custom-light: #7d5fbd;
$custom-dark: #000000;
JSON
{
  "hex": "#381fa0",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 160
  },
  "hsl": {
    "h": 251.628,
    "s": 67.539,
    "l": 37.451
  },
  "oklch": {
    "l": 0.37316,
    "c": 0.19047,
    "h": 280.8
  },
  "luminance": 0.04359
}

Semantic roles & 50–950 ramp

primary
#381FA0
secondary
#AEC358
accent
#EA3DC9
background
#F8F5FB
surface
#EFEAF7
border
#CAC6D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381FA0

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

Preview Lab → · Contrast checker → · Palette generator →

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