#381FB4#381FB4

#381FB4 is a dark, highly saturated violet. Relative luminance 0.051; OKLCH L 39.5% C 0.213 H 277.9°. Best body text is #FFFFFF at 10.38:1 contrast (WCAG AA passes).

Color values

HEX#381FB4
RGBrgb(56, 31, 180)
HSLhsl(250, 71%, 41%)
HSVhsv(250, 83%, 71%)
CMYKcmyk(68.9%, 82.8%, 0%, 29.4%)
CIE-LABlab(27.06, 53.21, -73.19)
CIE-LCHlch(27.06, 90.49, 306.02°)
OKLaboklab(39.52% 0.0294 -0.2114)
OKLCHoklch(39.52% 0.213 277.9)
XYZxyz(10.3564, 5.1151, 43.6127)
Luminance0.0512 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FB4 #9BB41F
analogous
#1F51B4 #381FB4 #831FB4
triadic
#381FB4 #B4381F #1FB438
tetradic
#381FB4 #B41F51 #9BB41F #1FB483
square
#381FB4 #B41F51 #9BB41F #1FB483
split-complementary
#381FB4 #B4831F #51B41F
monochromatic
#180D4C #281680 #381FB4 #5034DC #7D68E5

Accessibility & contrast

On white

10.38
#381FB4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.02
#381FB4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381FB4
10.38:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FB4#FFFFFF#000000##FFFFFF
##381FB41.0010.382.0210.38
#FFFFFF10.381.0021.001.00
#0000002.0221.001.0021.00
##FFFFFF10.381.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0046B8
Deuteranopia (green-blind)
#003AB1
Tritanopia (blue-blind)
#004E6B
Achromatopsia (no color)
#404040

Design tokens & code

CSS
--color: #381fb4;
/* rgb */ color: rgb(56, 31, 180);
/* oklch */ color: oklch(39.5% 0.213 277.9);
Tailwind
colors: {
  custom: {
    50: '#8261cc',
    500: '#381fb4',
    950: '#000000',
  },
}
SCSS
$custom: #381fb4;
$custom-light: #8261cc;
$custom-dark: #000000;
JSON
{
  "hex": "#381fb4",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 180
  },
  "hsl": {
    "h": 250.067,
    "s": 70.616,
    "l": 41.373
  },
  "oklch": {
    "l": 0.3952,
    "c": 0.21344,
    "h": 277.9
  },
  "luminance": 0.05116
}

Semantic roles & 50–950 ramp

primary
#381FB4
secondary
#B9CB64
accent
#ED3ACF
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #381FB4

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

Preview Lab → · Contrast checker → · Palette generator →

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