#381EA9#381EA9

#381EA9 is a dark, highly saturated violet. Relative luminance 0.046; OKLCH L 38.2% C 0.202 H 279.5°. Best body text is #FFFFFF at 10.90:1 contrast (WCAG AA passes).

Color values

HEX#381EA9
RGBrgb(56, 30, 169)
HSLhsl(251, 70%, 39%)
HSVhsv(251, 82%, 66%)
CMYKcmyk(66.9%, 82.2%, 0%, 33.7%)
CIE-LABlab(25.66, 50.44, -68.90)
CIE-LCHlch(25.66, 85.39, 306.21°)
OKLaboklab(38.19% 0.0333 -0.1989)
OKLCHoklch(38.19% 0.202 279.5)
XYZxyz(9.2543, 4.6331, 37.9350)
Luminance0.0463 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381EA9 #8FA91E
analogous
#1E4AA9 #381EA9 #7E1EA9
triadic
#381EA9 #A9381E #1EA938
tetradic
#381EA9 #A91E4A #8FA91E #1EA97E
square
#381EA9 #A91E4A #8FA91E #1EA97E
split-complementary
#381EA9 #A97E1E #4AA91E
monochromatic
#160C41 #271575 #381EA9 #4B2BD9 #775FE3

Accessibility & contrast

On white

10.90
#381EA9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.93
#381EA9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381EA9
10.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381EA9#FFFFFF#000000##FFFFFF
##381EA91.0010.901.9310.90
#FFFFFF10.901.0021.001.00
#0000001.9321.001.0021.00
##FFFFFF10.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0042AD
Deuteranopia (green-blind)
#0037A7
Tritanopia (blue-blind)
#004965
Achromatopsia (no color)
#3D3D3D

Design tokens & code

CSS
--color: #381ea9;
/* rgb */ color: rgb(56, 30, 169);
/* oklch */ color: oklch(38.2% 0.202 279.5);
Tailwind
colors: {
  custom: {
    50: '#7f5fc4',
    500: '#381ea9',
    950: '#000000',
  },
}
SCSS
$custom: #381ea9;
$custom-light: #7f5fc4;
$custom-dark: #000000;
JSON
{
  "hex": "#381ea9",
  "rgb": {
    "r": 56,
    "g": 30,
    "b": 169
  },
  "hsl": {
    "h": 251.223,
    "s": 69.849,
    "l": 39.02
  },
  "oklch": {
    "l": 0.38192,
    "c": 0.2017,
    "h": 279.5
  },
  "luminance": 0.04634
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #381EA9

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

Preview Lab → · Contrast checker → · Palette generator →

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