#381F7E#381F7E

#381F7E is a dark, vivid violet. Relative luminance 0.033; OKLCH L 33.8% C 0.149 H 287.6°. Best body text is #FFFFFF at 12.61:1 contrast (WCAG AA passes).

Color values

HEX#381F7E
RGBrgb(56, 31, 126)
HSLhsl(256, 61%, 31%)
HSVhsv(256, 75%, 49%)
CMYKcmyk(55.6%, 75.4%, 0%, 50.6%)
CIE-LABlab(21.31, 37.00, -49.49)
CIE-LCHlch(21.31, 61.80, 306.78°)
OKLaboklab(33.8% 0.0451 -0.1423)
OKLCHoklch(33.8% 0.149 287.6)
XYZxyz(5.8857, 3.3268, 20.0666)
Luminance0.0333 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F7E #657E1F
analogous
#1F367E #381F7E #671F7E
triadic
#381F7E #7E381F #1F7E38
tetradic
#381F7E #7E1F36 #657E1F #1F7E67
square
#381F7E #7E1F36 #657E1F #1F7E67
split-complementary
#381F7E #7E671F #367E1F
monochromatic
#0C071C #22134D #381F7E #4E2BAF #6B46D1

Accessibility & contrast

On white

12.61
#381F7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.67
#381F7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F7E
12.61:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F7E#FFFFFF#000000##FFFFFF
##381F7E1.0012.611.6712.61
#FFFFFF12.611.0021.001.00
#0000001.6721.001.0021.00
##FFFFFF12.611.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003581
Deuteranopia (green-blind)
#00317C
Tritanopia (blue-blind)
#1C394C
Achromatopsia (no color)
#333333

Design tokens & code

CSS
--color: #381f7e;
/* rgb */ color: rgb(56, 31, 126);
/* oklch */ color: oklch(33.8% 0.149 287.6);
Tailwind
colors: {
  custom: {
    50: '#775da4',
    500: '#381f7e',
    950: '#000000',
  },
}
SCSS
$custom: #381f7e;
$custom-light: #775da4;
$custom-dark: #000000;
JSON
{
  "hex": "#381f7e",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 126
  },
  "hsl": {
    "h": 255.789,
    "s": 60.51,
    "l": 30.784
  },
  "oklch": {
    "l": 0.338,
    "c": 0.1493,
    "h": 287.6
  },
  "luminance": 0.03327
}

Semantic roles & 50–950 ramp

primary
#381F7E
secondary
#95B148
accent
#E444BA
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381F7E

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

Preview Lab → · Contrast checker → · Palette generator →

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