#381F9C#381F9C

#381F9C is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.9% C 0.186 H 281.4°. Best body text is #FFFFFF at 11.39:1 contrast (WCAG AA passes).

Color values

HEX#381F9C
RGBrgb(56, 31, 156)
HSLhsl(252, 67%, 37%)
HSVhsv(252, 80%, 61%)
CMYKcmyk(64.1%, 80.1%, 0%, 38.8%)
CIE-LABlab(24.39, 46.13, -63.11)
CIE-LCHlch(24.39, 78.17, 306.16°)
OKLaboklab(36.89% 0.0368 -0.1821)
OKLCHoklch(36.89% 0.186 281.4)
XYZxyz(8.1197, 4.2204, 31.8328)
Luminance0.0422 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F9C #839C1F
analogous
#1F459C #381F9C #771F9C
triadic
#381F9C #9C381F #1F9C38
tetradic
#381F9C #9C1F45 #839C1F #1F9C77
square
#381F9C #9C1F45 #839C1F #1F9C77
split-complementary
#381F9C #9C771F #459C1F
monochromatic
#130B36 #261569 #381F9C #4A29CF #7258DE

Accessibility & contrast

On white

11.39
#381F9C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381F9C
11.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F9C#FFFFFF#000000##FFFFFF
##381F9C1.0011.391.8411.39
#FFFFFF11.391.0021.001.00
#0000001.8421.001.0021.00
##FFFFFF11.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003E9F
Deuteranopia (green-blind)
#00359A
Tritanopia (blue-blind)
#00455D
Achromatopsia (no color)
#3A3A3A

Design tokens & code

CSS
--color: #381f9c;
/* rgb */ color: rgb(56, 31, 156);
/* oklch */ color: oklch(36.9% 0.186 281.4);
Tailwind
colors: {
  custom: {
    50: '#7d5fba',
    500: '#381f9c',
    950: '#000000',
  },
}
SCSS
$custom: #381f9c;
$custom-light: #7d5fba;
$custom-dark: #000000;
JSON
{
  "hex": "#381f9c",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 156
  },
  "hsl": {
    "h": 252,
    "s": 66.845,
    "l": 36.667
  },
  "oklch": {
    "l": 0.36885,
    "c": 0.18577,
    "h": 281.4
  },
  "luminance": 0.04221
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381F9C

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

Preview Lab → · Contrast checker → · Palette generator →

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