#381F81#381F81

#381F81 is a dark, vivid violet. Relative luminance 0.034; OKLCH L 34.1% C 0.153 H 286.9°. Best body text is #FFFFFF at 12.49:1 contrast (WCAG AA passes).

Color values

HEX#381F81
RGBrgb(56, 31, 129)
HSLhsl(255, 61%, 31%)
HSVhsv(255, 76%, 51%)
CMYKcmyk(56.6%, 76%, 0%, 49.4%)
CIE-LABlab(21.60, 37.92, -50.91)
CIE-LCHlch(21.60, 63.48, 306.68°)
OKLaboklab(34.1% 0.0444 -0.1465)
OKLCHoklch(34.1% 0.153 286.9)
XYZxyz(6.0821, 3.4054, 21.1014)
Luminance0.0341 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F81 #68811F
analogous
#1F3781 #381F81 #691F81
triadic
#381F81 #81381F #1F8138
tetradic
#381F81 #811F37 #68811F #1F8169
square
#381F81 #811F37 #68811F #1F8169
split-complementary
#381F81 #81691F #37811F
monochromatic
#0D071E #231350 #381F81 #4D2BB2 #6B47D3

Accessibility & contrast

On white

12.49
#381F81 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.68
#381F81 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F81
12.49:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F81#FFFFFF#000000##FFFFFF
##381F811.0012.491.6812.49
#FFFFFF12.491.0021.001.00
#0000001.6821.001.0021.00
##FFFFFF12.491.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003684
Deuteranopia (green-blind)
#00317F
Tritanopia (blue-blind)
#183A4E
Achromatopsia (no color)
#343434

Design tokens & code

CSS
--color: #381f81;
/* rgb */ color: rgb(56, 31, 129);
/* oklch */ color: oklch(34.1% 0.153 286.9);
Tailwind
colors: {
  custom: {
    50: '#775da7',
    500: '#381f81',
    950: '#000000',
  },
}
SCSS
$custom: #381f81;
$custom-light: #775da7;
$custom-dark: #000000;
JSON
{
  "hex": "#381f81",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 129
  },
  "hsl": {
    "h": 255.306,
    "s": 61.25,
    "l": 31.373
  },
  "oklch": {
    "l": 0.34095,
    "c": 0.15305,
    "h": 286.9
  },
  "luminance": 0.03406
}

Semantic roles & 50–950 ramp

primary
#381F81
secondary
#98B448
accent
#E443BB
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381F81

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

Preview Lab → · Contrast checker → · Palette generator →

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