#381A6B#381A6B

#381A6B is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.3% C 0.132 H 294.5°. Best body text is #FFFFFF at 13.74:1 contrast (WCAG AA passes).

Color values

HEX#381A6B
RGBrgb(56, 26, 107)
HSLhsl(262, 61%, 26%)
HSVhsv(262, 76%, 42%)
CMYKcmyk(47.7%, 75.7%, 0%, 58%)
CIE-LABlab(18.54, 34.01, -41.80)
CIE-LCHlch(18.54, 53.89, 309.14°)
OKLaboklab(31.29% 0.0544 -0.1197)
OKLCHoklch(31.29% 0.132 294.5)
XYZxyz(4.6534, 2.6410, 14.1716)
Luminance0.0264 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A6B #4D6B1A
analogous
#1A246B #381A6B #601A6B
triadic
#381A6B #6B381A #1A6B38
tetradic
#381A6B #6B1A24 #4D6B1A #1A6B60
square
#381A6B #6B1A24 #4D6B1A #1A6B60
split-complementary
#381A6B #6B601A #246B1A
monochromatic
#0D0619 #1E0E3A #381A6B #52269C #6C32CD

Accessibility & contrast

On white

13.74
#381A6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381A6B
13.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A6B#FFFFFF#000000##FFFFFF
##381A6B1.0013.741.5313.74
#FFFFFF13.741.0021.001.00
#0000001.5321.001.0021.00
##FFFFFF13.741.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381a6b;
/* rgb */ color: rgb(56, 26, 107);
/* oklch */ color: oklch(31.3% 0.132 294.5);
Tailwind
colors: {
  custom: {
    50: '#745996',
    500: '#381a6b',
    950: '#000000',
  },
}
SCSS
$custom: #381a6b;
$custom-light: #745996;
$custom-dark: #000000;
JSON
{
  "hex": "#381a6b",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 107
  },
  "hsl": {
    "h": 262.222,
    "s": 60.902,
    "l": 26.078
  },
  "oklch": {
    "l": 0.31292,
    "c": 0.1315,
    "h": 294.5
  },
  "luminance": 0.02641
}

Semantic roles & 50–950 ramp

primary
#381A6B
secondary
#7DA040
accent
#E444A9
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381A6B

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

Preview Lab → · Contrast checker → · Palette generator →

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