#381B5B#381B5B

#381B5B is a dark, moderate violet. Relative luminance 0.024; OKLCH L 30.0% C 0.110 H 300.7°. Best body text is #FFFFFF at 14.23:1 contrast (WCAG AA passes).

Color values

HEX#381B5B
RGBrgb(56, 27, 91)
HSLhsl(267, 54%, 23%)
HSVhsv(267, 70%, 36%)
CMYKcmyk(38.5%, 70.3%, 0%, 64.3%)
CIE-LABlab(17.37, 28.79, -33.15)
CIE-LCHlch(17.37, 43.91, 310.97°)
OKLaboklab(30.02% 0.0561 -0.0943)
OKLCHoklch(30.02% 0.11 300.7)
XYZxyz(3.9107, 2.3799, 10.1488)
Luminance0.0238 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B5B #3E5B1B
analogous
#1B1E5B #381B5B #581B5B
triadic
#381B5B #5B381B #1B5B38
tetradic
#381B5B #5B1B1E #3E5B1B #1B5B58
square
#381B5B #5B1B1E #3E5B1B #1B5B58
split-complementary
#381B5B #5B581B #1E5B1B
monochromatic
#0F0718 #1B0D2C #381B5B #55298A #7237B9

Accessibility & contrast

On white

14.23
#381B5B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.48
#381B5B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B5B
14.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B5B#FFFFFF#000000##FFFFFF
##381B5B1.0014.231.4814.23
#FFFFFF14.231.0021.001.00
#0000001.4821.001.0021.00
##FFFFFF14.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002A5D
Deuteranopia (green-blind)
#002A5A
Tritanopia (blue-blind)
#302938
Achromatopsia (no color)
#2B2B2B

Design tokens & code

CSS
--color: #381b5b;
/* rgb */ color: rgb(56, 27, 91);
/* oklch */ color: oklch(30.0% 0.110 300.7);
Tailwind
colors: {
  custom: {
    50: '#72598a',
    500: '#381b5b',
    950: '#000000',
  },
}
SCSS
$custom: #381b5b;
$custom-light: #72598a;
$custom-dark: #000000;
JSON
{
  "hex": "#381b5b",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 91
  },
  "hsl": {
    "h": 267.188,
    "s": 54.237,
    "l": 23.137
  },
  "oklch": {
    "l": 0.30018,
    "c": 0.10973,
    "h": 300.7
  },
  "luminance": 0.0238
}

Semantic roles & 50–950 ramp

primary
#381B5B
secondary
#6D9141
accent
#DE4A9B
background
#F7F5F8
surface
#EDE9F0
border
#C8C5CB
text
#08040C
muted
#7B797D

Preview Lab

Preview with #381B5B

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

Preview Lab → · Contrast checker → · Palette generator →

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