#381F6B#381F6B

#381F6B is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.0% C 0.125 H 293.1°. Best body text is #FFFFFF at 13.32:1 contrast (WCAG AA passes).

Color values

HEX#381F6B
RGBrgb(56, 31, 107)
HSLhsl(260, 55%, 27%)
HSVhsv(260, 71%, 42%)
CMYKcmyk(47.7%, 71%, 0%, 58%)
CIE-LABlab(19.57, 31.18, -40.13)
CIE-LCHlch(19.57, 50.82, 307.85°)
OKLaboklab(32.02% 0.0491 -0.1148)
OKLCHoklch(32.02% 0.125 293.1)
XYZxyz(4.7740, 2.8821, 14.2118)
Luminance0.0288 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F6B #526B1F
analogous
#1F2C6B #381F6B #5E1F6B
triadic
#381F6B #6B381F #1F6B38
tetradic
#381F6B #6B1F2C #526B1F #1F6B5E
square
#381F6B #6B1F2C #526B1F #1F6B5E
split-complementary
#381F6B #6B5E1F #2C6B1F
monochromatic
#0C0718 #1F113C #381F6B #512D9A #6B3DC7

Accessibility & contrast

On white

13.32
#381F6B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.58
#381F6B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F6B
13.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F6B#FFFFFF#000000##FFFFFF
##381F6B1.0013.321.5813.32
#FFFFFF13.321.0021.001.00
#0000001.5821.001.0021.00
##FFFFFF13.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306D
Deuteranopia (green-blind)
#002E69
Tritanopia (blue-blind)
#293242
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381f6b;
/* rgb */ color: rgb(56, 31, 107);
/* oklch */ color: oklch(32.0% 0.125 293.1);
Tailwind
colors: {
  custom: {
    50: '#745c96',
    500: '#381f6b',
    950: '#000000',
  },
}
SCSS
$custom: #381f6b;
$custom-light: #745c96;
$custom-dark: #000000;
JSON
{
  "hex": "#381f6b",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 107
  },
  "hsl": {
    "h": 259.737,
    "s": 55.072,
    "l": 27.059
  },
  "oklch": {
    "l": 0.3202,
    "c": 0.12488,
    "h": 293.1
  },
  "luminance": 0.02882
}

Semantic roles & 50–950 ramp

primary
#381F6B
secondary
#829F47
accent
#DE49AD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381F6B

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

Preview Lab → · Contrast checker → · Palette generator →

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