#381B6E#381B6E

#381B6E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.7% C 0.134 H 293.2°. Best body text is #FFFFFF at 13.55:1 contrast (WCAG AA passes).

Color values

HEX#381B6E
RGBrgb(56, 27, 110)
HSLhsl(261, 61%, 27%)
HSVhsv(261, 75%, 43%)
CMYKcmyk(49.1%, 75.5%, 0%, 56.9%)
CIE-LABlab(19.01, 34.36, -42.98)
CIE-LCHlch(19.01, 55.02, 308.64°)
OKLaboklab(31.71% 0.0527 -0.1232)
OKLCHoklch(31.71% 0.134 293.2)
XYZxyz(4.8365, 2.7503, 15.0248)
Luminance0.0275 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B6E #516E1B
analogous
#1B286E #381B6E #621B6E
triadic
#381B6E #6E381B #1B6E38
tetradic
#381B6E #6E1B28 #516E1B #1B6E62
square
#381B6E #6E1B28 #516E1B #1B6E62
split-complementary
#381B6E #6E621B #286E1B
monochromatic
#0D0619 #1F0F3D #381B6E #51279F #6B36CE

Accessibility & contrast

On white

13.55
#381B6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.55
#381B6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381B6E
13.55:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B6E#FFFFFF#000000##FFFFFF
##381B6E1.0013.551.5513.55
#FFFFFF13.551.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.551.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F70
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#283042
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381b6e;
/* rgb */ color: rgb(56, 27, 110);
/* oklch */ color: oklch(31.7% 0.134 293.2);
Tailwind
colors: {
  custom: {
    50: '#755a98',
    500: '#381b6e',
    950: '#000000',
  },
}
SCSS
$custom: #381b6e;
$custom-light: #755a98;
$custom-dark: #000000;
JSON
{
  "hex": "#381b6e",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 110
  },
  "hsl": {
    "h": 260.964,
    "s": 60.584,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31711,
    "c": 0.134,
    "h": 293.2
  },
  "luminance": 0.0275
}

Semantic roles & 50–950 ramp

primary
#381B6E
secondary
#81A342
accent
#E444AC
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B6E

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

Preview Lab → · Contrast checker → · Palette generator →

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