#381B7E#381B7E

#381B7E is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.3% C 0.154 H 288.4°. Best body text is #FFFFFF at 12.91:1 contrast (WCAG AA passes).

Color values

HEX#381B7E
RGBrgb(56, 27, 126)
HSLhsl(258, 65%, 30%)
HSVhsv(258, 79%, 49%)
CMYKcmyk(55.6%, 78.6%, 0%, 50.6%)
CIE-LABlab(20.56, 39.12, -50.72)
CIE-LCHlch(20.56, 64.06, 307.65°)
OKLaboklab(33.27% 0.0485 -0.1459)
OKLCHoklch(33.27% 0.154 288.4)
XYZxyz(5.7876, 3.1307, 20.0339)
Luminance0.0313 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B7E #617E1B
analogous
#1B2F7E #381B7E #6A1B7E
triadic
#381B7E #7E381B #1B7E38
tetradic
#381B7E #7E1B2F #617E1B #1B7E6A
square
#381B7E #7E1B2F #617E1B #1B7E6A
split-complementary
#381B7E #7E6A1B #2F7E1B
monochromatic
#0B0519 #22104C #381B7E #4E26B0 #6A3ED6

Accessibility & contrast

On white

12.91
#381B7E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.63
#381B7E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B7E
12.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B7E#FFFFFF#000000##FFFFFF
##381B7E1.0012.911.6312.91
#FFFFFF12.911.0021.001.00
#0000001.6321.001.0021.00
##FFFFFF12.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003481
Deuteranopia (green-blind)
#002F7C
Tritanopia (blue-blind)
#1C374B
Achromatopsia (no color)
#323232

Design tokens & code

CSS
--color: #381b7e;
/* rgb */ color: rgb(56, 27, 126);
/* oklch */ color: oklch(33.3% 0.154 288.4);
Tailwind
colors: {
  custom: {
    50: '#775ba4',
    500: '#381b7e',
    950: '#000000',
  },
}
SCSS
$custom: #381b7e;
$custom-light: #775ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#381b7e",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 126
  },
  "hsl": {
    "h": 257.576,
    "s": 64.706,
    "l": 30
  },
  "oklch": {
    "l": 0.33273,
    "c": 0.15372,
    "h": 288.4
  },
  "luminance": 0.03131
}

Semantic roles & 50–950 ramp

primary
#381B7E
secondary
#91B243
accent
#E840B7
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381B7E

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

Preview Lab → · Contrast checker → · Palette generator →

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