#381F7D#381F7D

#381F7D is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.7% C 0.148 H 287.9°. Best body text is #FFFFFF at 12.65:1 contrast (WCAG AA passes).

Color values

HEX#381F7D
RGBrgb(56, 31, 125)
HSLhsl(256, 60%, 31%)
HSVhsv(256, 75%, 49%)
CMYKcmyk(55.2%, 75.2%, 0%, 51%)
CIE-LABlab(21.21, 36.70, -49.01)
CIE-LCHlch(21.21, 61.23, 306.82°)
OKLaboklab(33.7% 0.0454 -0.1409)
OKLCHoklch(33.7% 0.148 287.9)
XYZxyz(5.8215, 3.3011, 19.7285)
Luminance0.0330 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F7D #647D1F
analogous
#1F357D #381F7D #671F7D
triadic
#381F7D #7D381F #1F7D38
tetradic
#381F7D #7D1F35 #647D1F #1F7D67
square
#381F7D #7D1F35 #647D1F #1F7D67
split-complementary
#381F7D #7D671F #357D1F
monochromatic
#0C071B #22134C #381F7D #4E2BAE #6B45D1

Accessibility & contrast

On white

12.65
#381F7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381F7D
12.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F7D#FFFFFF#000000##FFFFFF
##381F7D1.0012.651.6612.65
#FFFFFF12.651.0021.001.00
#0000001.6621.001.0021.00
##FFFFFF12.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003580
Deuteranopia (green-blind)
#00307B
Tritanopia (blue-blind)
#1C384C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381f7d;
/* rgb */ color: rgb(56, 31, 125);
/* oklch */ color: oklch(33.7% 0.148 287.9);
Tailwind
colors: {
  custom: {
    50: '#775da4',
    500: '#381f7d',
    950: '#000000',
  },
}
SCSS
$custom: #381f7d;
$custom-light: #775da4;
$custom-dark: #000000;
JSON
{
  "hex": "#381f7d",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 125
  },
  "hsl": {
    "h": 255.957,
    "s": 60.256,
    "l": 30.588
  },
  "oklch": {
    "l": 0.33702,
    "c": 0.14804,
    "h": 287.9
  },
  "luminance": 0.03301
}

Semantic roles & 50–950 ramp

primary
#381F7D
secondary
#94B048
accent
#E344B9
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F7D

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

Preview Lab → · Contrast checker → · Palette generator →

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