#381DA8#381DA8

#381DA8 is a dark, highly saturated violet. Relative luminance 0.045; OKLCH L 38.0% C 0.201 H 279.7°. Best body text is #FFFFFF at 11.00:1 contrast (WCAG AA passes).

Color values

HEX#381DA8
RGBrgb(56, 29, 168)
HSLhsl(252, 71%, 39%)
HSVhsv(252, 83%, 66%)
CMYKcmyk(66.7%, 82.7%, 0%, 34.1%)
CIE-LABlab(25.40, 50.59, -68.73)
CIE-LCHlch(25.40, 85.34, 306.36°)
OKLaboklab(37.98% 0.034 -0.1984)
OKLCHoklch(37.98% 0.201 279.7)
XYZxyz(9.1359, 4.5459, 37.4342)
Luminance0.0455 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381DA8 #8DA81D
analogous
#1D47A8 #381DA8 #7D1DA8
triadic
#381DA8 #A8381D #1DA838
tetradic
#381DA8 #A81D47 #8DA81D #1DA87D
square
#381DA8 #A81D47 #8DA81D #1DA87D
split-complementary
#381DA8 #A87D1D #47A81D
monochromatic
#150B40 #271474 #381DA8 #4B28DA #775CE3

Accessibility & contrast

On white

11.00
#381DA8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.91
#381DA8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381DA8
11.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381DA8#FFFFFF#000000##FFFFFF
##381DA81.0011.001.9111.00
#FFFFFF11.001.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF11.001.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #381da8;
/* rgb */ color: rgb(56, 29, 168);
/* oklch */ color: oklch(38.0% 0.201 279.7);
Tailwind
colors: {
  custom: {
    50: '#7f5fc3',
    500: '#381da8',
    950: '#000000',
  },
}
SCSS
$custom: #381da8;
$custom-light: #7f5fc3;
$custom-dark: #000000;
JSON
{
  "hex": "#381da8",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 168
  },
  "hsl": {
    "h": 251.655,
    "s": 70.558,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37977,
    "c": 0.20133,
    "h": 279.7
  },
  "luminance": 0.04547
}

Semantic roles & 50–950 ramp

primary
#381DA8
secondary
#B2C75A
accent
#ED3ACB
background
#F8F5FC
surface
#F0E9F8
border
#CBC5D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381DA8

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

Preview Lab → · Contrast checker → · Palette generator →

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