#381A56#381A56

#381A56 is a dark, moderate violet. Relative luminance 0.023; OKLCH L 29.5% C 0.105 H 303.6°. Best body text is #FFFFFF at 14.48:1 contrast (WCAG AA passes).

Color values

HEX#381A56
RGBrgb(56, 26, 86)
HSLhsl(270, 54%, 22%)
HSVhsv(270, 70%, 34%)
CMYKcmyk(34.9%, 69.8%, 0%, 66.3%)
CIE-LABlab(16.75, 27.96, -30.79)
CIE-LCHlch(16.75, 41.59, 312.25°)
OKLaboklab(29.45% 0.0579 -0.0873)
OKLCHoklch(29.45% 0.105 303.6)
XYZxyz(3.6796, 2.2514, 9.0430)
Luminance0.0225 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A56 #38561A
analogous
#1A1A56 #381A56 #561A56
triadic
#381A56 #56381A #1A5638
tetradic
#381A56 #561A1A #38561A #1A5656
square
#381A56 #561A1A #38561A #1A5656
split-complementary
#381A56 #56561A #1A561A
monochromatic
#0F0717 #190C27 #381A56 #572885 #7536B4

Accessibility & contrast

On white

14.48
#381A56 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.45
#381A56 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A56
14.48:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A56#FFFFFF#000000##FFFFFF
##381A561.0014.481.4514.48
#FFFFFF14.481.0021.001.00
#0000001.4521.001.0021.00
##FFFFFF14.481.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002958
Deuteranopia (green-blind)
#072955
Tritanopia (blue-blind)
#322735
Achromatopsia (no color)
#292929

Design tokens & code

CSS
--color: #381a56;
/* rgb */ color: rgb(56, 26, 86);
/* oklch */ color: oklch(29.5% 0.105 303.6);
Tailwind
colors: {
  custom: {
    50: '#715986',
    500: '#381a56',
    950: '#000000',
  },
}
SCSS
$custom: #381a56;
$custom-light: #715986;
$custom-dark: #000000;
JSON
{
  "hex": "#381a56",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 86
  },
  "hsl": {
    "h": 270,
    "s": 53.571,
    "l": 21.961
  },
  "oklch": {
    "l": 0.29451,
    "c": 0.1048,
    "h": 303.6
  },
  "luminance": 0.02251
}

Semantic roles & 50–950 ramp

primary
#381A56
secondary
#668C40
accent
#DD4B94
background
#F7F5F8
surface
#EDE9EF
border
#C8C5CA
text
#08030B
muted
#7B787C

Preview Lab

Preview with #381A56

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

Preview Lab → · Contrast checker → · Palette generator →

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