#381F7C#381F7C

#381F7C is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.6% C 0.147 H 288.1°. Best body text is #FFFFFF at 12.69:1 contrast (WCAG AA passes).

Color values

HEX#381F7C
RGBrgb(56, 31, 124)
HSLhsl(256, 60%, 30%)
HSVhsv(256, 75%, 49%)
CMYKcmyk(54.8%, 75%, 0%, 51.4%)
CIE-LABlab(21.12, 36.39, -48.54)
CIE-LCHlch(21.12, 60.66, 306.86°)
OKLaboklab(33.61% 0.0456 -0.1395)
OKLCHoklch(33.61% 0.147 288.1)
XYZxyz(5.7579, 3.2757, 19.3937)
Luminance0.0328 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F7C #637C1F
analogous
#1F347C #381F7C #661F7C
triadic
#381F7C #7C381F #1F7C38
tetradic
#381F7C #7C1F34 #637C1F #1F7C66
square
#381F7C #7C1F34 #637C1F #1F7C66
split-complementary
#381F7C #7C661F #347C1F
monochromatic
#0C071A #22134B #381F7C #4E2BAD #6A45D0

Accessibility & contrast

On white

12.69
#381F7C on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.66
#381F7C on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F7C
12.69:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F7C#FFFFFF#000000##FFFFFF
##381F7C1.0012.691.6612.69
#FFFFFF12.691.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.691.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00357F
Deuteranopia (green-blind)
#00307A
Tritanopia (blue-blind)
#1D384B
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381f7c;
/* rgb */ color: rgb(56, 31, 124);
/* oklch */ color: oklch(33.6% 0.147 288.1);
Tailwind
colors: {
  custom: {
    50: '#775da3',
    500: '#381f7c',
    950: '#000000',
  },
}
SCSS
$custom: #381f7c;
$custom-light: #775da3;
$custom-dark: #000000;
JSON
{
  "hex": "#381f7c",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 124
  },
  "hsl": {
    "h": 256.129,
    "s": 60,
    "l": 30.392
  },
  "oklch": {
    "l": 0.33605,
    "c": 0.14678,
    "h": 288.1
  },
  "luminance": 0.03276
}

Semantic roles & 50–950 ramp

primary
#381F7C
secondary
#93AF48
accent
#E345B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F7C

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

Preview Lab → · Contrast checker → · Palette generator →

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