#381E68#381E68

#381E68 is a dark, vivid violet. Relative luminance 0.028; OKLCH L 31.6% C 0.122 H 294.5°. Best body text is #FFFFFF at 13.52:1 contrast (WCAG AA passes).

Color values

HEX#381E68
RGBrgb(56, 30, 104)
HSLhsl(261, 55%, 26%)
HSVhsv(261, 71%, 41%)
CMYKcmyk(46.2%, 71.2%, 0%, 59.2%)
CIE-LABlab(19.09, 30.86, -38.94)
CIE-LCHlch(19.09, 49.69, 308.39°)
OKLaboklab(31.6% 0.0507 -0.1113)
OKLCHoklch(31.6% 0.122 294.5)
XYZxyz(4.5932, 2.7687, 13.3864)
Luminance0.0277 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E68 #4E681E
analogous
#1E2968 #381E68 #5D1E68
triadic
#381E68 #68381E #1E6838
tetradic
#381E68 #681E29 #4E681E #1E685D
square
#381E68 #681E29 #4E681E #1E685D
split-complementary
#381E68 #685D1E #29681E
monochromatic
#0D0718 #1E1039 #381E68 #522C98 #6B3AC6

Accessibility & contrast

On white

13.52
#381E68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381E68
13.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E68#FFFFFF#000000##FFFFFF
##381E681.0013.521.5513.52
#FFFFFF13.521.0021.001.00
#0000001.5521.001.0021.00
##FFFFFF13.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002F6A
Deuteranopia (green-blind)
#002D66
Tritanopia (blue-blind)
#2B3040
Achromatopsia (no color)
#2E2E2E

Design tokens & code

CSS
--color: #381e68;
/* rgb */ color: rgb(56, 30, 104);
/* oklch */ color: oklch(31.6% 0.122 294.5);
Tailwind
colors: {
  custom: {
    50: '#735c94',
    500: '#381e68',
    950: '#000000',
  },
}
SCSS
$custom: #381e68;
$custom-light: #735c94;
$custom-dark: #000000;
JSON
{
  "hex": "#381e68",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 104
  },
  "hsl": {
    "h": 261.081,
    "s": 55.224,
    "l": 26.275
  },
  "oklch": {
    "l": 0.316,
    "c": 0.12233,
    "h": 294.5
  },
  "luminance": 0.02769
}

Semantic roles & 50–950 ramp

primary
#381E68
secondary
#7E9D45
accent
#DF49AA
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#08040D
muted
#7B797E

Preview Lab

Preview with #381E68

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

Preview Lab → · Contrast checker → · Palette generator →

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