#381B56#381B56

#381B56 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.6% C 0.103 H 303.2°. Best body text is #FFFFFF at 14.39:1 contrast (WCAG AA passes).

Color values

HEX#381B56
RGBrgb(56, 27, 86)
HSLhsl(269, 52%, 22%)
HSVhsv(269, 69%, 34%)
CMYKcmyk(34.9%, 68.6%, 0%, 66.3%)
CIE-LABlab(16.97, 27.37, -30.44)
CIE-LCHlch(16.97, 40.93, 311.96°)
OKLaboklab(29.61% 0.0566 -0.0863)
OKLCHoklch(29.61% 0.103 303.2)
XYZxyz(3.7021, 2.2965, 9.0505)
Luminance0.0230 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B56 #39561B
analogous
#1B1B56 #381B56 #561B56
triadic
#381B56 #56381B #1B5638
tetradic
#381B56 #561B1B #39561B #1B5656
square
#381B56 #561B1B #39561B #1B5656
split-complementary
#381B56 #56561B #1B561B
monochromatic
#0F0717 #1A0C27 #381B56 #562A85 #7538B3

Accessibility & contrast

On white

14.39
#381B56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.46
#381B56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B56
14.39:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B56#FFFFFF#000000##FFFFFF
##381B561.0014.391.4614.39
#FFFFFF14.391.0021.001.00
#0000001.4621.001.0021.00
##FFFFFF14.391.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#092A55
Tritanopia (blue-blind)
#322835
Achromatopsia (no color)
#2A2A2A

Design tokens & code

CSS
--color: #381b56;
/* rgb */ color: rgb(56, 27, 86);
/* oklch */ color: oklch(29.6% 0.103 303.2);
Tailwind
colors: {
  custom: {
    50: '#715986',
    500: '#381b56',
    950: '#000000',
  },
}
SCSS
$custom: #381b56;
$custom-light: #715986;
$custom-dark: #000000;
JSON
{
  "hex": "#381b56",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 86
  },
  "hsl": {
    "h": 269.492,
    "s": 52.212,
    "l": 22.157
  },
  "oklch": {
    "l": 0.29608,
    "c": 0.10321,
    "h": 303.2
  },
  "luminance": 0.02297
}

Semantic roles & 50–950 ramp

primary
#381B56
secondary
#678C41
accent
#DC4C95
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381B56

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

Preview Lab → · Contrast checker → · Palette generator →

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