#381A7F#381A7F

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

Color values

HEX#381A7F
RGBrgb(56, 26, 127)
HSLhsl(258, 66%, 30%)
HSVhsv(258, 80%, 50%)
CMYKcmyk(55.9%, 79.5%, 0%, 50.2%)
CIE-LABlab(20.49, 39.92, -51.48)
CIE-LCHlch(20.49, 65.14, 307.79°)
OKLaboklab(33.25% 0.049 -0.1481)
OKLCHoklch(33.25% 0.156 288.3)
XYZxyz(5.8299, 3.1116, 20.3680)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A7F #617F1A
analogous
#1A2E7F #381A7F #6B1A7F
triadic
#381A7F #7F381A #1A7F38
tetradic
#381A7F #7F1A2E #617F1A #1A7F6B
square
#381A7F #7F1A2E #617F1A #1A7F6B
split-complementary
#381A7F #7F6B1A #2E7F1A
monochromatic
#0B0519 #22104C #381A7F #4E24B2 #6A3CD7

Accessibility & contrast

On white

12.94
#381A7F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.62
#381A7F on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A7F
12.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A7F#FFFFFF#000000##FFFFFF
##381A7F1.0012.941.6212.94
#FFFFFF12.941.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003382
Deuteranopia (green-blind)
#002F7D
Tritanopia (blue-blind)
#1B374C
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381a7f;
/* rgb */ color: rgb(56, 26, 127);
/* oklch */ color: oklch(33.3% 0.156 288.3);
Tailwind
colors: {
  custom: {
    50: '#775ba5',
    500: '#381a7f',
    950: '#000000',
  },
}
SCSS
$custom: #381a7f;
$custom-light: #775ba5;
$custom-dark: #000000;
JSON
{
  "hex": "#381a7f",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 127
  },
  "hsl": {
    "h": 257.822,
    "s": 66.013,
    "l": 30
  },
  "oklch": {
    "l": 0.33252,
    "c": 0.15597,
    "h": 288.3
  },
  "luminance": 0.03112
}

Semantic roles & 50–950 ramp

primary
#381A7F
secondary
#91B342
accent
#E93FB6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A040F
muted
#7C797F

Preview Lab

Preview with #381A7F

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

Preview Lab → · Contrast checker → · Palette generator →

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