#381F9A#381F9A

#381F9A is a dark, vivid violet. Relative luminance 0.042; OKLCH L 36.7% C 0.183 H 281.8°. Best body text is #FFFFFF at 11.47:1 contrast (WCAG AA passes).

Color values

HEX#381F9A
RGBrgb(56, 31, 154)
HSLhsl(252, 66%, 36%)
HSVhsv(252, 80%, 60%)
CMYKcmyk(63.6%, 79.9%, 0%, 39.6%)
CIE-LABlab(24.17, 45.53, -62.24)
CIE-LCHlch(24.17, 77.11, 306.19°)
OKLaboklab(36.67% 0.0374 -0.1796)
OKLCHoklch(36.67% 0.183 281.8)
XYZxyz(7.9518, 4.1532, 30.9482)
Luminance0.0415 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F9A #819A1F
analogous
#1F449A #381F9A #761F9A
triadic
#381F9A #9A381F #1F9A38
tetradic
#381F9A #9A1F44 #819A1F #1F9A76
square
#381F9A #9A1F44 #819A1F #1F9A76
split-complementary
#381F9A #9A761F #449A1F
monochromatic
#130A34 #251567 #381F9A #4B29CD #7256DD

Accessibility & contrast

On white

11.47
#381F9A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.83
#381F9A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F9A
11.47:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F9A#FFFFFF#000000##FFFFFF
##381F9A1.0011.471.8311.47
#FFFFFF11.471.0021.001.00
#0000001.8321.001.0021.00
##FFFFFF11.471.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9D
Deuteranopia (green-blind)
#003598
Tritanopia (blue-blind)
#00445C
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381f9a;
/* rgb */ color: rgb(56, 31, 154);
/* oklch */ color: oklch(36.7% 0.183 281.8);
Tailwind
colors: {
  custom: {
    50: '#7c5fb9',
    500: '#381f9a',
    950: '#000000',
  },
}
SCSS
$custom: #381f9a;
$custom-light: #7c5fb9;
$custom-dark: #000000;
JSON
{
  "hex": "#381f9a",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 154
  },
  "hsl": {
    "h": 252.195,
    "s": 66.486,
    "l": 36.275
  },
  "oklch": {
    "l": 0.36671,
    "c": 0.18341,
    "h": 281.8
  },
  "luminance": 0.04154
}

Semantic roles & 50–950 ramp

primary
#381F9A
secondary
#ABC154
accent
#E93EC7
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0512
muted
#7C7981

Preview Lab

Preview with #381F9A

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

Preview Lab → · Contrast checker → · Palette generator →

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