#381DBC#381DBC

#381DBC is a dark, highly saturated violet. Relative luminance 0.053; OKLCH L 40.2% C 0.224 H 277.1°. Best body text is #FFFFFF at 10.14:1 contrast (WCAG AA passes).

Color values

HEX#381DBC
RGBrgb(56, 29, 188)
HSLhsl(250, 73%, 43%)
HSVhsv(250, 85%, 74%)
CMYKcmyk(70.2%, 84.6%, 0%, 26.3%)
CIE-LABlab(27.71, 56.33, -76.87)
CIE-LCHlch(27.71, 95.30, 306.23°)
OKLaboklab(40.23% 0.0276 -0.2221)
OKLCHoklch(40.23% 0.224 277.1)
XYZxyz(11.1444, 5.3493, 48.0124)
Luminance0.0535 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381DBC #A1BC1D
analogous
#1D51BC #381DBC #881DBC
triadic
#381DBC #BC381D #1DBC38
tetradic
#381DBC #BC1D51 #A1BC1D #1DBC88
square
#381DBC #BC1D51 #A1BC1D #1DBC88
split-complementary
#381DBC #BC881D #51BC1D
monochromatic
#180D52 #281587 #381DBC #5336E0 #806BE8

Accessibility & contrast

On white

10.14
#381DBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.07
#381DBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381DBC
10.14:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381DBC#FFFFFF#000000##FFFFFF
##381DBC1.0010.142.0710.14
#FFFFFF10.141.0021.001.00
#0000002.0721.001.0021.00
##FFFFFF10.141.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C0
Deuteranopia (green-blind)
#003BB9
Tritanopia (blue-blind)
#005170
Achromatopsia (no color)
#414141

Design tokens & code

CSS
--color: #381dbc;
/* rgb */ color: rgb(56, 29, 188);
/* oklch */ color: oklch(40.2% 0.224 277.1);
Tailwind
colors: {
  custom: {
    50: '#8360d2',
    500: '#381dbc',
    950: '#000000',
  },
}
SCSS
$custom: #381dbc;
$custom-light: #8360d2;
$custom-dark: #000000;
JSON
{
  "hex": "#381dbc",
  "rgb": {
    "r": 56,
    "g": 29,
    "b": 188
  },
  "hsl": {
    "h": 250.189,
    "s": 73.272,
    "l": 42.549
  },
  "oklch": {
    "l": 0.40233,
    "c": 0.22378,
    "h": 277.1
  },
  "luminance": 0.0535
}

Semantic roles & 50–950 ramp

primary
#381DBC
secondary
#BCCE67
accent
#F038D1
background
#F8F5FD
surface
#F0EAFA
border
#CBC6D3
text
#0D0514
muted
#7D7983

Preview Lab

Preview with #381DBC

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

Preview Lab → · Contrast checker → · Palette generator →

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