#381CB3#381CB3

#381CB3 is a dark, highly saturated violet. Relative luminance 0.049; OKLCH L 39.1% C 0.214 H 278.3°. Best body text is #FFFFFF at 10.58:1 contrast (WCAG AA passes).

Color values

HEX#381CB3
RGBrgb(56, 28, 179)
HSLhsl(251, 73%, 41%)
HSVhsv(251, 84%, 70%)
CMYKcmyk(68.7%, 84.4%, 0%, 29.8%)
CIE-LABlab(26.52, 54.18, -73.48)
CIE-LCHlch(26.52, 91.30, 306.40°)
OKLaboklab(39.12% 0.0309 -0.2122)
OKLCHoklch(39.12% 0.214 278.3)
XYZxyz(10.1802, 4.9250, 43.0532)
Luminance0.0493 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381CB3 #97B31C
analogous
#1C4BB3 #381CB3 #831CB3
triadic
#381CB3 #B3381C #1CB338
tetradic
#381CB3 #B31C4B #97B31C #1CB383
square
#381CB3 #B31C4B #97B31C #1CB383
split-complementary
#381CB3 #B3831C #4BB31C
monochromatic
#170B49 #27147E #381CB3 #4F2EDE #7B63E7

Accessibility & contrast

On white

10.58
#381CB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.99
#381CB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381CB3
10.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381CB3#FFFFFF#000000##FFFFFF
##381CB31.0010.581.9910.58
#FFFFFF10.581.0021.001.00
#0000001.9921.001.0021.00
##FFFFFF10.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0039B0
Tritanopia (blue-blind)
#004D6A
Achromatopsia (no color)
#3F3F3F

Design tokens & code

CSS
--color: #381cb3;
/* rgb */ color: rgb(56, 28, 179);
/* oklch */ color: oklch(39.1% 0.214 278.3);
Tailwind
colors: {
  custom: {
    50: '#825fcb',
    500: '#381cb3',
    950: '#000000',
  },
}
SCSS
$custom: #381cb3;
$custom-light: #825fcb;
$custom-dark: #000000;
JSON
{
  "hex": "#381cb3",
  "rgb": {
    "r": 56,
    "g": 28,
    "b": 179
  },
  "hsl": {
    "h": 251.126,
    "s": 72.947,
    "l": 40.588
  },
  "oklch": {
    "l": 0.39115,
    "c": 0.21446,
    "h": 278.3
  },
  "luminance": 0.04926
}

Semantic roles & 50–950 ramp

primary
#381CB3
secondary
#B7CB5F
accent
#F038CE
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #381CB3

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

Preview Lab → · Contrast checker → · Palette generator →

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