#381B7B#381B7B

#381B7B is a dark, vivid violet. Relative luminance 0.031; OKLCH L 33.0% C 0.150 H 289.2°. Best body text is #FFFFFF at 13.04:1 contrast (WCAG AA passes).

Color values

HEX#381B7B
RGBrgb(56, 27, 123)
HSLhsl(258, 64%, 29%)
HSVhsv(258, 78%, 48%)
CMYKcmyk(54.5%, 78%, 0%, 51.8%)
CIE-LABlab(20.26, 38.23, -49.30)
CIE-LCHlch(20.26, 62.39, 307.79°)
OKLaboklab(32.97% 0.0494 -0.1417)
OKLCHoklch(32.97% 0.15 289.2)
XYZxyz(5.5969, 3.0544, 19.0297)
Luminance0.0306 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B7B #5E7B1B
analogous
#1B2E7B #381B7B #681B7B
triadic
#381B7B #7B381B #1B7B38
tetradic
#381B7B #7B1B2E #5E7B1B #1B7B68
square
#381B7B #7B1B2E #5E7B1B #1B7B68
split-complementary
#381B7B #7B681B #2E7B1B
monochromatic
#0B0619 #211049 #381B7B #4F26AD #6A3CD4

Accessibility & contrast

On white

13.04
#381B7B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.61
#381B7B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B7B
13.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B7B#FFFFFF#000000##FFFFFF
##381B7B1.0013.041.6113.04
#FFFFFF13.041.0021.001.00
#0000001.6121.001.0021.00
##FFFFFF13.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00337E
Deuteranopia (green-blind)
#002E79
Tritanopia (blue-blind)
#1F364A
Achromatopsia (no color)
#313131

Design tokens & code

CSS
--color: #381b7b;
/* rgb */ color: rgb(56, 27, 123);
/* oklch */ color: oklch(33.0% 0.150 289.2);
Tailwind
colors: {
  custom: {
    50: '#775ba2',
    500: '#381b7b',
    950: '#000000',
  },
}
SCSS
$custom: #381b7b;
$custom-light: #775ba2;
$custom-dark: #000000;
JSON
{
  "hex": "#381b7b",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 123
  },
  "hsl": {
    "h": 258.125,
    "s": 64,
    "l": 29.412
  },
  "oklch": {
    "l": 0.32972,
    "c": 0.15007,
    "h": 289.2
  },
  "luminance": 0.03055
}

Semantic roles & 50–950 ramp

primary
#381B7B
secondary
#8EAF43
accent
#E741B5
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#09040F
muted
#7B797F

Preview Lab

Preview with #381B7B

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

Preview Lab → · Contrast checker → · Palette generator →

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