#381F97#381F97

#381F97 is a dark, vivid violet. Relative luminance 0.041; OKLCH L 36.4% C 0.180 H 282.3°. Best body text is #FFFFFF at 11.60:1 contrast (WCAG AA passes).

Color values

HEX#381F97
RGBrgb(56, 31, 151)
HSLhsl(253, 66%, 36%)
HSVhsv(253, 79%, 59%)
CMYKcmyk(62.9%, 79.5%, 0%, 40.8%)
CIE-LABlab(23.85, 44.62, -60.92)
CIE-LCHlch(23.85, 75.52, 306.22°)
OKLaboklab(36.35% 0.0383 -0.1757)
OKLCHoklch(36.35% 0.18 282.3)
XYZxyz(7.7050, 4.0545, 29.6487)
Luminance0.0406 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F97 #7E971F
analogous
#1F4297 #381F97 #741F97
triadic
#381F97 #97381F #1F9738
tetradic
#381F97 #971F42 #7E971F #1F9774
square
#381F97 #971F42 #7E971F #1F9774
split-complementary
#381F97 #97741F #42971F
monochromatic
#120A31 #251564 #381F97 #4B29CA #7154DC

Accessibility & contrast

On white

11.60
#381F97 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.81
#381F97 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F97
11.60:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F97#FFFFFF#000000##FFFFFF
##381F971.0011.601.8111.60
#FFFFFF11.601.0021.001.00
#0000001.8121.001.0021.00
##FFFFFF11.601.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003D9A
Deuteranopia (green-blind)
#003495
Tritanopia (blue-blind)
#00435B
Achromatopsia (no color)
#393939

Design tokens & code

CSS
--color: #381f97;
/* rgb */ color: rgb(56, 31, 151);
/* oklch */ color: oklch(36.4% 0.180 282.3);
Tailwind
colors: {
  custom: {
    50: '#7c5fb7',
    500: '#381f97',
    950: '#000000',
  },
}
SCSS
$custom: #381f97;
$custom-light: #7c5fb7;
$custom-dark: #000000;
JSON
{
  "hex": "#381f97",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 151
  },
  "hsl": {
    "h": 252.5,
    "s": 65.934,
    "l": 35.686
  },
  "oklch": {
    "l": 0.36352,
    "c": 0.17985,
    "h": 282.3
  },
  "luminance": 0.04055
}

Semantic roles & 50–950 ramp

primary
#381F97
secondary
#A9BF52
accent
#E93FC5
background
#F8F5FB
surface
#EFE9F6
border
#CAC5D0
text
#0B0511
muted
#7C7980

Preview Lab

Preview with #381F97

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

Preview Lab → · Contrast checker → · Palette generator →

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