#381B6F#381B6F

#381B6F is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.8% C 0.135 H 292.8°. Best body text is #FFFFFF at 13.51:1 contrast (WCAG AA passes).

Color values

HEX#381B6F
RGBrgb(56, 27, 111)
HSLhsl(261, 61%, 27%)
HSVhsv(261, 76%, 44%)
CMYKcmyk(49.5%, 75.7%, 0%, 56.5%)
CIE-LABlab(19.11, 34.65, -43.48)
CIE-LCHlch(19.11, 55.60, 308.56°)
OKLaboklab(31.81% 0.0525 -0.1246)
OKLCHoklch(31.81% 0.135 292.8)
XYZxyz(4.8913, 2.7722, 15.3132)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381B6F #526F1B
analogous
#1B286F #381B6F #621B6F
triadic
#381B6F #6F381B #1B6F38
tetradic
#381B6F #6F1B28 #526F1B #1B6F62
square
#381B6F #6F1B28 #526F1B #1B6F62
split-complementary
#381B6F #6F621B #286F1B
monochromatic
#0C0619 #1F0F3E #381B6F #5127A0 #6B36CE

Accessibility & contrast

On white

13.51
#381B6F on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381B6F
13.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381B6F#FFFFFF#000000##FFFFFF
##381B6F1.0013.511.5513.51
#FFFFFF13.511.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F71
Deuteranopia (green-blind)
#002D6D
Tritanopia (blue-blind)
#273143
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381b6f;
/* rgb */ color: rgb(56, 27, 111);
/* oklch */ color: oklch(31.8% 0.135 292.8);
Tailwind
colors: {
  custom: {
    50: '#755a99',
    500: '#381b6f',
    950: '#000000',
  },
}
SCSS
$custom: #381b6f;
$custom-light: #755a99;
$custom-dark: #000000;
JSON
{
  "hex": "#381b6f",
  "rgb": {
    "r": 56,
    "g": 27,
    "b": 111
  },
  "hsl": {
    "h": 260.714,
    "s": 60.87,
    "l": 27.059
  },
  "oklch": {
    "l": 0.31805,
    "c": 0.13525,
    "h": 292.8
  },
  "luminance": 0.02772
}

Semantic roles & 50–950 ramp

primary
#381B6F
secondary
#82A442
accent
#E444AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381B6F

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

Preview Lab → · Contrast checker → · Palette generator →

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