#381F72#381F72

#381F72 is a dark, vivid violet. Relative luminance 0.030; OKLCH L 32.7% C 0.134 H 290.9°. Best body text is #FFFFFF at 13.07:1 contrast (WCAG AA passes).

Color values

HEX#381F72
RGBrgb(56, 31, 114)
HSLhsl(258, 57%, 28%)
HSVhsv(258, 73%, 45%)
CMYKcmyk(50.9%, 72.8%, 0%, 55.3%)
CIE-LABlab(20.19, 33.32, -43.66)
CIE-LCHlch(20.19, 54.92, 307.35°)
OKLaboklab(32.66% 0.0478 -0.1252)
OKLCHoklch(32.66% 0.134 290.9)
XYZxyz(5.1573, 3.0354, 16.2305)
Luminance0.0304 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F72 #59721F
analogous
#1F2F72 #381F72 #611F72
triadic
#381F72 #72381F #1F7238
tetradic
#381F72 #721F2F #59721F #1F7261
square
#381F72 #721F2F #59721F #1F7261
split-complementary
#381F72 #72611F #2F721F
monochromatic
#0C0718 #201242 #381F72 #502CA2 #6A40CB

Accessibility & contrast

On white

13.07
#381F72 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381F72 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F72
13.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F72#FFFFFF#000000##FFFFFF
##381F721.0013.071.6113.07
#FFFFFF13.071.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003274
Deuteranopia (green-blind)
#002F70
Tritanopia (blue-blind)
#253446
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381f72;
/* rgb */ color: rgb(56, 31, 114);
/* oklch */ color: oklch(32.7% 0.134 290.9);
Tailwind
colors: {
  custom: {
    50: '#755d9b',
    500: '#381f72',
    950: '#000000',
  },
}
SCSS
$custom: #381f72;
$custom-light: #755d9b;
$custom-dark: #000000;
JSON
{
  "hex": "#381f72",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 114
  },
  "hsl": {
    "h": 258.072,
    "s": 57.241,
    "l": 28.431
  },
  "oklch": {
    "l": 0.32657,
    "c": 0.13401,
    "h": 290.9
  },
  "luminance": 0.03036
}

Semantic roles & 50–950 ramp

primary
#381F72
secondary
#89A647
accent
#E047B2
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F72

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

Preview Lab → · Contrast checker → · Palette generator →

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