#381D6E#381D6E

#381D6E is a dark, vivid violet. Relative luminance 0.028; OKLCH L 32.0% C 0.131 H 292.7°. Best body text is #FFFFFF at 13.38:1 contrast (WCAG AA passes).

Color values

HEX#381D6E
RGBrgb(56, 29, 110)
HSLhsl(260, 58%, 27%)
HSVhsv(260, 74%, 43%)
CMYKcmyk(49.1%, 73.6%, 0%, 56.9%)
CIE-LABlab(19.41, 33.25, -42.33)
CIE-LCHlch(19.41, 53.83, 308.15°)
OKLaboklab(31.99% 0.0507 -0.1213)
OKLCHoklch(31.99% 0.131 292.7)
XYZxyz(4.8839, 2.8451, 15.0407)
Luminance0.0284 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381D6E #536E1D
analogous
#1D2B6E #381D6E #611D6E
triadic
#381D6E #6E381D #1D6E38
tetradic
#381D6E #6E1D2B #536E1D #1D6E61
square
#381D6E #6E1D2B #536E1D #1D6E61
split-complementary
#381D6E #6E611D #2B6E1D
monochromatic
#0C0618 #1F103E #381D6E #512A9E #6B3ACB

Accessibility & contrast

On white

13.38
#381D6E on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381D6E
13.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381D6E#FFFFFF#000000##FFFFFF
##381D6E1.0013.381.5713.38
#FFFFFF13.381.0021.001.00
#0000001.5721.001.0021.00
##FFFFFF13.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#003070
Deuteranopia (green-blind)
#002D6C
Tritanopia (blue-blind)
#283243
Achromatopsia (no color)
#2F2F2F

Design tokens & code

CSS
--color: #381d6e;
/* rgb */ color: rgb(56, 29, 110);
/* oklch */ color: oklch(32.0% 0.131 292.7);
Tailwind
colors: {
  custom: {
    50: '#745b98',
    500: '#381d6e',
    950: '#000000',
  },
}
SCSS
$custom: #381d6e;
$custom-light: #745b98;
$custom-dark: #000000;
JSON
{
  "hex": "#381d6e",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 110
  },
  "hsl": {
    "h": 260,
    "s": 58.273,
    "l": 27.255
  },
  "oklch": {
    "l": 0.31994,
    "c": 0.13145,
    "h": 292.7
  },
  "luminance": 0.02845
}

Semantic roles & 50–950 ramp

primary
#381D6E
secondary
#83A244
accent
#E146AE
background
#F7F5F9
surface
#EDE9F2
border
#C8C5CC
text
#09040E
muted
#7B797E

Preview Lab

Preview with #381D6E

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

Preview Lab → · Contrast checker → · Palette generator →

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