#381B6B#381B6B

#381B6B is a dark, vivid violet. Relative luminance 0.027; OKLCH L 31.4% C 0.130 H 294.2°. Best body text is #FFFFFF at 13.66:1 contrast (WCAG AA passes).

Color values

HEX#381B6B
RGBrgb(56, 27, 107)
HSLhsl(262, 60%, 26%)
HSVhsv(262, 75%, 42%)
CMYKcmyk(47.7%, 74.8%, 0%, 58%)
CIE-LABlab(18.74, 33.47, -41.48)
CIE-LCHlch(18.74, 53.30, 308.90°)
OKLaboklab(31.43% 0.0534 -0.1188)
OKLCHoklch(31.43% 0.13 294.2)
XYZxyz(4.6759, 2.6860, 14.1792)
Luminance0.0269 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B6B #4E6B1B
analogous
#1B266B #381B6B #601B6B
triadic
#381B6B #6B381B #1B6B38
tetradic
#381B6B #6B1B26 #4E6B1B #1B6B60
square
#381B6B #6B1B26 #4E6B1B #1B6B60
split-complementary
#381B6B #6B601B #266B1B
monochromatic
#0D0618 #1E0F3A #381B6B #52279C #6B35CC

Accessibility & contrast

On white

13.66
#381B6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.54
#381B6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B6B
13.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B6B#FFFFFF#000000##FFFFFF
##381B6B1.0013.661.5413.66
#FFFFFF13.661.0021.001.00
#0000001.5421.001.0021.00
##FFFFFF13.661.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002E6D
Deuteranopia (green-blind)
#002C69
Tritanopia (blue-blind)
#292F41
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381b6b;
/* rgb */ color: rgb(56, 27, 107);
/* oklch */ color: oklch(31.4% 0.130 294.2);
Tailwind
colors: {
  custom: {
    50: '#745a96',
    500: '#381b6b',
    950: '#000000',
  },
}
SCSS
$custom: #381b6b;
$custom-light: #745a96;
$custom-dark: #000000;
JSON
{
  "hex": "#381b6b",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 107
  },
  "hsl": {
    "h": 261.75,
    "s": 59.701,
    "l": 26.275
  },
  "oklch": {
    "l": 0.31431,
    "c": 0.13022,
    "h": 294.2
  },
  "luminance": 0.02686
}

Semantic roles & 50–950 ramp

primary
#381B6B
secondary
#7EA042
accent
#E345AA
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381B6B

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

Preview Lab → · Contrast checker → · Palette generator →

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