#381FAE#381FAE

#381FAE is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 38.9% C 0.207 H 278.7°. Best body text is #FFFFFF at 10.63:1 contrast (WCAG AA passes).

Color values

HEX#381FAE
RGBrgb(56, 31, 174)
HSLhsl(250, 70%, 40%)
HSVhsv(250, 82%, 68%)
CMYKcmyk(67.8%, 82.2%, 0%, 31.8%)
CIE-LABlab(26.38, 51.46, -70.72)
CIE-LCHlch(26.38, 87.47, 306.04°)
OKLaboklab(38.85% 0.0312 -0.2043)
OKLCHoklch(38.85% 0.207 278.7)
XYZxyz(9.7584, 4.8759, 40.4631)
Luminance0.0488 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FAE #95AE1F
analogous
#1F4DAE #381FAE #801FAE
triadic
#381FAE #AE381F #1FAE38
tetradic
#381FAE #AE1F4D #95AE1F #1FAE80
square
#381FAE #AE1F4D #95AE1F #1FAE80
split-complementary
#381FAE #AE801F #4DAE1F
monochromatic
#170C46 #27167A #381FAE #4E30DA #7A64E3

Accessibility & contrast

On white

10.63
#381FAE on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.98
#381FAE on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381FAE
10.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FAE#FFFFFF#000000##FFFFFF
##381FAE1.0010.631.9810.63
#FFFFFF10.631.0021.001.00
#0000001.9821.001.0021.00
##FFFFFF10.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B2
Deuteranopia (green-blind)
#0039AC
Tritanopia (blue-blind)
#004C68
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #381fae;
/* rgb */ color: rgb(56, 31, 174);
/* oklch */ color: oklch(38.9% 0.207 278.7);
Tailwind
colors: {
  custom: {
    50: '#8060c8',
    500: '#381fae',
    950: '#000000',
  },
}
SCSS
$custom: #381fae;
$custom-light: #8060c8;
$custom-dark: #000000;
JSON
{
  "hex": "#381fae",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 174
  },
  "hsl": {
    "h": 250.49,
    "s": 69.756,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38851,
    "c": 0.20664,
    "h": 278.7
  },
  "luminance": 0.04877
}

Semantic roles & 50–950 ramp

primary
#381FAE
secondary
#B6C860
accent
#ED3BCE
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381FAE

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

Preview Lab → · Contrast checker → · Palette generator →

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