#381F6E#381F6E

#381F6E is a dark, vivid violet. Relative luminance 0.029; OKLCH L 32.3% C 0.129 H 292.1°. Best body text is #FFFFFF at 13.21:1 contrast (WCAG AA passes).

Color values

HEX#381F6E
RGBrgb(56, 31, 110)
HSLhsl(259, 56%, 28%)
HSVhsv(259, 72%, 43%)
CMYKcmyk(49.1%, 71.8%, 0%, 56.9%)
CIE-LABlab(19.83, 32.10, -41.65)
CIE-LCHlch(19.83, 52.59, 307.62°)
OKLaboklab(32.29% 0.0486 -0.1193)
OKLCHoklch(32.29% 0.129 292.1)
XYZxyz(4.9346, 2.9463, 15.0575)
Luminance0.0295 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381F6E #556E1F
analogous
#1F2E6E #381F6E #5F1F6E
triadic
#381F6E #6E381F #1F6E38
tetradic
#381F6E #6E1F2E #556E1F #1F6E5F
square
#381F6E #6E1F2E #556E1F #1F6E5F
split-complementary
#381F6E #6E5F1F #2E6E1F
monochromatic
#0C0718 #20123E #381F6E #502C9E #6A3FC9

Accessibility & contrast

On white

13.21
#381F6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.59
#381F6E on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381F6E
13.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381F6E#FFFFFF#000000##FFFFFF
##381F6E1.0013.211.5913.21
#FFFFFF13.211.0021.001.00
#0000001.5921.001.0021.00
##FFFFFF13.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003170
Deuteranopia (green-blind)
#002E6C
Tritanopia (blue-blind)
#273344
Achromatopsia (no color)
#303030

Design tokens & code

CSS
--color: #381f6e;
/* rgb */ color: rgb(56, 31, 110);
/* oklch */ color: oklch(32.3% 0.129 292.1);
Tailwind
colors: {
  custom: {
    50: '#745d98',
    500: '#381f6e',
    950: '#000000',
  },
}
SCSS
$custom: #381f6e;
$custom-light: #745d98;
$custom-dark: #000000;
JSON
{
  "hex": "#381f6e",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 110
  },
  "hsl": {
    "h": 258.987,
    "s": 56.028,
    "l": 27.647
  },
  "oklch": {
    "l": 0.3229,
    "c": 0.12881,
    "h": 292.1
  },
  "luminance": 0.02947
}

Semantic roles & 50–950 ramp

primary
#381F6E
secondary
#85A247
accent
#DF48B0
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381F6E

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

Preview Lab → · Contrast checker → · Palette generator →

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