#381B6A#381B6A

#381B6A is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.3% C 0.129 H 294.6°. Best body text is #FFFFFF at 13.70:1 contrast (WCAG AA passes).

Color values

HEX#381B6A
RGBrgb(56, 27, 106)
HSLhsl(262, 59%, 26%)
HSVhsv(262, 75%, 42%)
CMYKcmyk(47.2%, 74.5%, 0%, 58.4%)
CIE-LABlab(18.65, 33.17, -40.97)
CIE-LCHlch(18.65, 52.72, 308.99°)
OKLaboklab(31.34% 0.0536 -0.1173)
OKLCHoklch(31.34% 0.129 294.6)
XYZxyz(4.6236, 2.6651, 13.9037)
Luminance0.0267 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B6A #4D6A1B
analogous
#1B266A #381B6A #5F1B6A
triadic
#381B6A #6A381B #1B6A38
tetradic
#381B6A #6A1B26 #4D6A1B #1B6A5F
square
#381B6A #6A1B26 #4D6A1B #1B6A5F
split-complementary
#381B6A #6A5F1B #266A1B
monochromatic
#0D0618 #1E0F39 #381B6A #52279B #6C34CB

Accessibility & contrast

On white

13.70
#381B6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.53
#381B6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B6A
13.70:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B6A#FFFFFF#000000##FFFFFF
##381B6A1.0013.701.5313.70
#FFFFFF13.701.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.701.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6C
Deuteranopia (green-blind)
#002C68
Tritanopia (blue-blind)
#2A2F40
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381b6a;
/* rgb */ color: rgb(56, 27, 106);
/* oklch */ color: oklch(31.3% 0.129 294.6);
Tailwind
colors: {
  custom: {
    50: '#745a95',
    500: '#381b6a',
    950: '#000000',
  },
}
SCSS
$custom: #381b6a;
$custom-light: #745a95;
$custom-dark: #000000;
JSON
{
  "hex": "#381b6a",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 106
  },
  "hsl": {
    "h": 262.025,
    "s": 59.398,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31338,
    "c": 0.12896,
    "h": 294.6
  },
  "luminance": 0.02665
}

Semantic roles & 50–950 ramp

primary
#381B6A
secondary
#7D9F42
accent
#E345A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381B6A

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

Preview Lab → · Contrast checker → · Palette generator →

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