#381EA8#381EA8

#381EA8 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.1% C 0.201 H 279.6°. Best body text is #FFFFFF at 10.94:1 contrast (WCAG AA passes).

Color values

HEX#381EA8
RGBrgb(56, 30, 168)
HSLhsl(251, 70%, 39%)
HSVhsv(251, 82%, 66%)
CMYKcmyk(66.7%, 82.1%, 0%, 34.1%)
CIE-LABlab(25.55, 50.15, -68.48)
CIE-LCHlch(25.55, 84.88, 306.22°)
OKLaboklab(38.08% 0.0336 -0.1977)
OKLCHoklch(38.08% 0.201 279.6)
XYZxyz(9.1608, 4.5957, 37.4425)
Luminance0.0460 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381EA8 #8EA81E
analogous
#1E49A8 #381EA8 #7D1EA8
triadic
#381EA8 #A8381E #1EA838
tetradic
#381EA8 #A81E49 #8EA81E #1EA87D
square
#381EA8 #A81E49 #8EA81E #1EA87D
split-complementary
#381EA8 #A87D1E #49A81E
monochromatic
#150B40 #271574 #381EA8 #4B2AD9 #775EE2

Accessibility & contrast

On white

10.94
#381EA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.92
#381EA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381EA8
10.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381EA8#FFFFFF#000000##FFFFFF
##381EA81.0010.941.9210.94
#FFFFFF10.941.0021.001.00
#0000001.9221.001.0021.00
##FFFFFF10.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AC
Deuteranopia (green-blind)
#0037A6
Tritanopia (blue-blind)
#004964
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #381ea8;
/* rgb */ color: rgb(56, 30, 168);
/* oklch */ color: oklch(38.1% 0.201 279.6);
Tailwind
colors: {
  custom: {
    50: '#7f5fc3',
    500: '#381ea8',
    950: '#000000',
  },
}
SCSS
$custom: #381ea8;
$custom-light: #7f5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#381ea8",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 168
  },
  "hsl": {
    "h": 251.304,
    "s": 69.697,
    "l": 38.824
  },
  "oklch": {
    "l": 0.38081,
    "c": 0.20055,
    "h": 279.6
  },
  "luminance": 0.04596
}

Semantic roles & 50–950 ramp

primary
#381EA8
secondary
#B2C75B
accent
#ED3BCB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381EA8

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

Preview Lab → · Contrast checker → · Palette generator →

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