#381B7D#381B7D

#381B7D is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.2% C 0.153 H 288.7°. Best body text is #FFFFFF at 12.95:1 contrast (WCAG AA passes).

Color values

HEX#381B7D
RGBrgb(56, 27, 125)
HSLhsl(258, 64%, 30%)
HSVhsv(258, 78%, 49%)
CMYKcmyk(55.2%, 78.4%, 0%, 51%)
CIE-LABlab(20.46, 38.83, -50.25)
CIE-LCHlch(20.46, 63.50, 307.69°)
OKLaboklab(33.17% 0.0488 -0.1445)
OKLCHoklch(33.17% 0.153 288.7)
XYZxyz(5.7234, 3.1050, 19.6958)
Luminance0.0311 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B7D #607D1B
analogous
#1B2F7D #381B7D #691B7D
triadic
#381B7D #7D381B #1B7D38
tetradic
#381B7D #7D1B2F #607D1B #1B7D69
square
#381B7D #7D1B2F #607D1B #1B7D69
split-complementary
#381B7D #7D691B #2F7D1B
monochromatic
#0B0519 #21104B #381B7D #4F26AF #6A3DD5

Accessibility & contrast

On white

12.95
#381B7D on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B7D
12.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B7D#FFFFFF#000000##FFFFFF
##381B7D1.0012.951.6212.95
#FFFFFF12.951.0021.001.00
#0000001.6221.001.0021.00
##FFFFFF12.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003380
Deuteranopia (green-blind)
#002F7B
Tritanopia (blue-blind)
#1D364B
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381b7d;
/* rgb */ color: rgb(56, 27, 125);
/* oklch */ color: oklch(33.2% 0.153 288.7);
Tailwind
colors: {
  custom: {
    50: '#775ba4',
    500: '#381b7d',
    950: '#000000',
  },
}
SCSS
$custom: #381b7d;
$custom-light: #775ba4;
$custom-dark: #000000;
JSON
{
  "hex": "#381b7d",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 125
  },
  "hsl": {
    "h": 257.755,
    "s": 64.474,
    "l": 29.804
  },
  "oklch": {
    "l": 0.33172,
    "c": 0.15251,
    "h": 288.7
  },
  "luminance": 0.03105
}

Semantic roles & 50–950 ramp

primary
#381B7D
secondary
#90B143
accent
#E740B6
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381B7D

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

Preview Lab → · Contrast checker → · Palette generator →

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