#381F9B#381F9B

#381F9B is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.8% C 0.185 H 281.6°. Best body text is #FFFFFF at 11.43:1 contrast (WCAG AA passes).

Color values

HEX#381F9B
RGBrgb(56, 31, 155)
HSLhsl(252, 67%, 36%)
HSVhsv(252, 80%, 61%)
CMYKcmyk(63.9%, 80%, 0%, 39.2%)
CIE-LABlab(24.28, 45.83, -62.67)
CIE-LCHlch(24.28, 77.64, 306.18°)
OKLaboklab(36.78% 0.0371 -0.1808)
OKLCHoklch(36.78% 0.185 281.6)
XYZxyz(8.0354, 4.1867, 31.3887)
Luminance0.0419 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F9B #829B1F
analogous
#1F449B #381F9B #761F9B
triadic
#381F9B #9B381F #1F9B38
tetradic
#381F9B #9B1F44 #829B1F #1F9B76
square
#381F9B #9B1F44 #829B1F #1F9B76
split-complementary
#381F9B #9B761F #449B1F
monochromatic
#130B35 #261568 #381F9B #4A29CE #7257DD

Accessibility & contrast

On white

11.43
#381F9B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.84
#381F9B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F9B
11.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F9B#FFFFFF#000000##FFFFFF
##381F9B1.0011.431.8411.43
#FFFFFF11.431.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.431.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9E
Deuteranopia (green-blind)
#003599
Tritanopia (blue-blind)
#00445D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381f9b;
/* rgb */ color: rgb(56, 31, 155);
/* oklch */ color: oklch(36.8% 0.185 281.6);
Tailwind
colors: {
  custom: {
    50: '#7c5fba',
    500: '#381f9b',
    950: '#000000',
  },
}
SCSS
$custom: #381f9b;
$custom-light: #7c5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#381f9b",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 155
  },
  "hsl": {
    "h": 252.097,
    "s": 66.667,
    "l": 36.471
  },
  "oklch": {
    "l": 0.36778,
    "c": 0.18459,
    "h": 281.6
  },
  "luminance": 0.04187
}

Semantic roles & 50–950 ramp

primary
#381F9B
secondary
#ABC155
accent
#EA3EC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381F9B

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

Preview Lab → · Contrast checker → · Palette generator →

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