#381F6A#381F6A

#381F6A is a dark, vivid violet. Relative luminance 0.029; OKLCH L 31.9% C 0.124 H 293.5°. Best body text is #FFFFFF at 13.36:1 contrast (WCAG AA passes).

Color values

HEX#381F6A
RGBrgb(56, 31, 106)
HSLhsl(260, 55%, 27%)
HSVhsv(260, 71%, 42%)
CMYKcmyk(47.2%, 70.8%, 0%, 58.4%)
CIE-LABlab(19.48, 30.88, -39.62)
CIE-LCHlch(19.48, 50.23, 307.93°)
OKLaboklab(31.93% 0.0492 -0.1133)
OKLCHoklch(31.93% 0.124 293.5)
XYZxyz(4.7217, 2.8612, 13.9364)
Luminance0.0286 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F6A #516A1F
analogous
#1F2C6A #381F6A #5E1F6A
triadic
#381F6A #6A381F #1F6A38
tetradic
#381F6A #6A1F2C #516A1F #1F6A5E
square
#381F6A #6A1F2C #516A1F #1F6A5E
split-complementary
#381F6A #6A5E1F #2C6A1F
monochromatic
#0D0718 #1F113B #381F6A #512D99 #6B3DC6

Accessibility & contrast

On white

13.36
#381F6A on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.57
#381F6A on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F6A
13.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F6A#FFFFFF#000000##FFFFFF
##381F6A1.0013.361.5713.36
#FFFFFF13.361.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00306C
Deuteranopia (green-blind)
#002E68
Tritanopia (blue-blind)
#2A3141
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381f6a;
/* rgb */ color: rgb(56, 31, 106);
/* oklch */ color: oklch(31.9% 0.124 293.5);
Tailwind
colors: {
  custom: {
    50: '#745c95',
    500: '#381f6a',
    950: '#000000',
  },
}
SCSS
$custom: #381f6a;
$custom-light: #745c95;
$custom-dark: #000000;
JSON
{
  "hex": "#381f6a",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 106
  },
  "hsl": {
    "h": 260,
    "s": 54.745,
    "l": 26.863
  },
  "oklch": {
    "l": 0.31931,
    "c": 0.12355,
    "h": 293.5
  },
  "luminance": 0.02861
}

Semantic roles & 50–950 ramp

primary
#381F6A
secondary
#819E47
accent
#DE4AAD
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381F6A

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

Preview Lab → · Contrast checker → · Palette generator →

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