#381A68#381A68

#381A68 is a dark, vivid violet. Relative luminance 0.026; OKLCH L 31.0% C 0.128 H 295.6°. Best body text is #FFFFFF at 13.85:1 contrast (WCAG AA passes).

Color values

HEX#381A68
RGBrgb(56, 26, 104)
HSLhsl(263, 60%, 25%)
HSVhsv(263, 75%, 41%)
CMYKcmyk(46.2%, 75%, 0%, 59.2%)
CIE-LABlab(18.27, 33.14, -40.28)
CIE-LCHlch(18.27, 52.16, 309.44°)
OKLaboklab(31.01% 0.0551 -0.1152)
OKLCHoklch(31.01% 0.128 295.6)
XYZxyz(4.4983, 2.5789, 13.3548)
Luminance0.0258 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381A68 #4A681A
analogous
#1A2368 #381A68 #5F1A68
triadic
#381A68 #68381A #1A6838
tetradic
#381A68 #681A23 #4A681A #1A685F
square
#381A68 #681A23 #4A681A #1A685F
split-complementary
#381A68 #685F1A #23681A
monochromatic
#0D0618 #1E0E37 #381A68 #522699 #6D32CA

Accessibility & contrast

On white

13.85
#381A68 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.52
#381A68 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381A68
13.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381A68#FFFFFF#000000##FFFFFF
##381A681.0013.851.5213.85
#FFFFFF13.851.0021.001.00
#0000001.5221.001.0021.00
##FFFFFF13.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#002D6A
Deuteranopia (green-blind)
#002B66
Tritanopia (blue-blind)
#2B2E3F
Achromatopsia (no color)
#2D2D2D

Design tokens & code

CSS
--color: #381a68;
/* rgb */ color: rgb(56, 26, 104);
/* oklch */ color: oklch(31.0% 0.128 295.6);
Tailwind
colors: {
  custom: {
    50: '#745994',
    500: '#381a68',
    950: '#000000',
  },
}
SCSS
$custom: #381a68;
$custom-light: #745994;
$custom-dark: #000000;
JSON
{
  "hex": "#381a68",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 104
  },
  "hsl": {
    "h": 263.077,
    "s": 60,
    "l": 25.49
  },
  "oklch": {
    "l": 0.31014,
    "c": 0.12774,
    "h": 295.6
  },
  "luminance": 0.02579
}

Semantic roles & 50–950 ramp

primary
#381A68
secondary
#7A9D40
accent
#E345A6
background
#F7F5F9
surface
#EDE9F1
border
#C8C5CB
text
#09040D
muted
#7B797E

Preview Lab

Preview with #381A68

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

Preview Lab → · Contrast checker → · Palette generator →

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