#381F79#381F79

#381F79 is a dark, vivid violet. Relative luminance 0.032; OKLCH L 33.3% C 0.143 H 288.9°. Best body text is #FFFFFF at 12.80:1 contrast (WCAG AA passes).

Color values

HEX#381F79
RGBrgb(56, 31, 121)
HSLhsl(257, 59%, 30%)
HSVhsv(257, 74%, 47%)
CMYKcmyk(53.7%, 74.4%, 0%, 52.5%)
CIE-LABlab(20.83, 35.47, -47.09)
CIE-LCHlch(20.83, 58.95, 306.99°)
OKLaboklab(33.32% 0.0463 -0.1353)
OKLCHoklch(33.32% 0.143 288.9)
XYZxyz(5.5711, 3.2009, 18.4098)
Luminance0.0320 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F79 #60791F
analogous
#1F3379 #381F79 #651F79
triadic
#381F79 #79381F #1F7938
tetradic
#381F79 #791F33 #60791F #1F7965
square
#381F79 #791F33 #60791F #1F7965
split-complementary
#381F79 #79651F #33791F
monochromatic
#0B0618 #211348 #381F79 #4F2BAA #6A43CF

Accessibility & contrast

On white

12.80
#381F79 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.64
#381F79 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F79
12.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F79#FFFFFF#000000##FFFFFF
##381F791.0012.801.6412.80
#FFFFFF12.801.0021.001.00
#0000001.6421.001.0021.00
##FFFFFF12.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00347C
Deuteranopia (green-blind)
#003077
Tritanopia (blue-blind)
#20374A
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381f79;
/* rgb */ color: rgb(56, 31, 121);
/* oklch */ color: oklch(33.3% 0.143 288.9);
Tailwind
colors: {
  custom: {
    50: '#765da1',
    500: '#381f79',
    950: '#000000',
  },
}
SCSS
$custom: #381f79;
$custom-light: #765da1;
$custom-dark: #000000;
JSON
{
  "hex": "#381f79",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 121
  },
  "hsl": {
    "h": 256.667,
    "s": 59.211,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33316,
    "c": 0.14298,
    "h": 288.9
  },
  "luminance": 0.03201
}

Semantic roles & 50–950 ramp

primary
#381F79
secondary
#90AC47
accent
#E245B7
background
#F7F5FA
surface
#EDE9F3
border
#C8C5CD
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F79

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

Preview Lab → · Contrast checker → · Palette generator →

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