#381E8B#381E8B

#381E8B is a dark, vivid violet. Relative luminance 0.036; OKLCH L 35.0% C 0.166 H 284.8°. Best body text is #FFFFFF at 12.16:1 contrast (WCAG AA passes).

Color values

HEX#381E8B
RGBrgb(56, 30, 139)
HSLhsl(254, 64%, 33%)
HSVhsv(254, 78%, 55%)
CMYKcmyk(59.7%, 78.4%, 0%, 45.5%)
CIE-LABlab(22.42, 41.50, -55.85)
CIE-LCHlch(22.42, 69.58, 306.62°)
OKLaboklab(34.98% 0.0425 -0.1609)
OKLCHoklch(34.98% 0.166 284.8)
XYZxyz(6.7539, 3.6330, 24.7664)
Luminance0.0363 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381E8B #718B1E
analogous
#1E3A8B #381E8B #6E1E8B
triadic
#381E8B #8B381E #1E8B38
tetradic
#381E8B #8B1E3A #718B1E #1E8B6E
square
#381E8B #8B1E3A #718B1E #1E8B6E
split-complementary
#381E8B #8B6E1E #3A8B1E
monochromatic
#0F0826 #241359 #381E8B #4C29BD #6D4BD8

Accessibility & contrast

On white

12.16
#381E8B on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.73
#381E8B on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381E8B
12.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381E8B#FFFFFF#000000##FFFFFF
##381E8B1.0012.161.7312.16
#FFFFFF12.161.0021.001.00
#0000001.7321.001.0021.00
##FFFFFF12.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#00398E
Deuteranopia (green-blind)
#003289
Tritanopia (blue-blind)
#083D54
Achromatopsia (no color)
#363636

Design tokens & code

CSS
--color: #381e8b;
/* rgb */ color: rgb(56, 30, 139);
/* oklch */ color: oklch(35.0% 0.166 284.8);
Tailwind
colors: {
  custom: {
    50: '#795dae',
    500: '#381e8b',
    950: '#000000',
  },
}
SCSS
$custom: #381e8b;
$custom-light: #795dae;
$custom-dark: #000000;
JSON
{
  "hex": "#381e8b",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 139
  },
  "hsl": {
    "h": 254.312,
    "s": 64.497,
    "l": 33.137
  },
  "oklch": {
    "l": 0.34975,
    "c": 0.1664,
    "h": 284.8
  },
  "luminance": 0.03633
}

Semantic roles & 50–950 ramp

primary
#381E8B
secondary
#A0BB4A
accent
#E740C0
background
#F7F5FA
surface
#EEE9F4
border
#C9C5CE
text
#0A0410
muted
#7C797F

Preview Lab

Preview with #381E8B

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

Preview Lab → · Contrast checker → · Palette generator →

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