#381FA6#381FA6

#381FA6 is a dark, vivid violet. Relative luminance 0.046; OKLCH L 38.0% C 0.197 H 279.8°. Best body text is #FFFFFF at 10.97:1 contrast (WCAG AA passes).

Color values

HEX#381FA6
RGBrgb(56, 31, 166)
HSLhsl(251, 69%, 39%)
HSVhsv(251, 81%, 65%)
CMYKcmyk(66.3%, 81.3%, 0%, 34.9%)
CIE-LABlab(25.48, 49.11, -67.38)
CIE-LCHlch(25.48, 83.38, 306.08°)
OKLaboklab(37.97% 0.0337 -0.1945)
OKLCHoklch(37.97% 0.197 279.8)
XYZxyz(9.0016, 4.5732, 36.4773)
Luminance0.0457 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FA6 #8DA61F
analogous
#1F49A6 #381FA6 #7B1FA6
triadic
#381FA6 #A6381F #1FA638
tetradic
#381FA6 #A61F49 #8DA61F #1FA67B
square
#381FA6 #A61F49 #8DA61F #1FA67B
split-complementary
#381FA6 #A67B1F #49A61F
monochromatic
#150C3F #271572 #381FA6 #4B2BD7 #775EE1

Accessibility & contrast

On white

10.97
#381FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #381FA6
10.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FA6#FFFFFF#000000##FFFFFF
##381FA61.0010.971.9110.97
#FFFFFF10.971.0021.001.00
#0000001.9121.001.0021.00
##FFFFFF10.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0041AA
Deuteranopia (green-blind)
#0037A4
Tritanopia (blue-blind)
#004963
Achromatopsia (no color)
#3C3C3C

Design tokens & code

CSS
--color: #381fa6;
/* rgb */ color: rgb(56, 31, 166);
/* oklch */ color: oklch(38.0% 0.197 279.8);
Tailwind
colors: {
  custom: {
    50: '#7f60c2',
    500: '#381fa6',
    950: '#000000',
  },
}
SCSS
$custom: #381fa6;
$custom-light: #7f60c2;
$custom-dark: #000000;
JSON
{
  "hex": "#381fa6",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 166
  },
  "hsl": {
    "h": 251.111,
    "s": 68.528,
    "l": 38.627
  },
  "oklch": {
    "l": 0.37969,
    "c": 0.19744,
    "h": 279.8
  },
  "luminance": 0.04574
}

Semantic roles & 50–950 ramp

primary
#381FA6
secondary
#B2C55B
accent
#EB3CCB
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0B0513
muted
#7C7982

Preview Lab

Preview with #381FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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