#381AB3#381AB3

#381AB3 is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.9% C 0.216 H 278.4°. Best body text is #FFFFFF at 10.68:1 contrast (WCAG AA passes).

Color values

HEX#381AB3
RGBrgb(56, 26, 179)
HSLhsl(252, 75%, 40%)
HSVhsv(252, 85%, 70%)
CMYKcmyk(68.7%, 85.5%, 0%, 29.8%)
CIE-LABlab(26.25, 54.96, -73.93)
CIE-LCHlch(26.25, 92.12, 306.63°)
OKLaboklab(38.93% 0.0316 -0.2135)
OKLCHoklch(38.93% 0.216 278.4)
XYZxyz(10.1343, 4.8333, 43.0379)
Luminance0.0483 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381AB3 #95B31A
analogous
#1A48B3 #381AB3 #851AB3
triadic
#381AB3 #B3381A #1AB338
tetradic
#381AB3 #B31A48 #95B31A #1AB385
square
#381AB3 #B31A48 #95B31A #1AB385
split-complementary
#381AB3 #B3851A #48B31A
monochromatic
#170A48 #27127E #381AB3 #4E2AE0 #7A60E8

Accessibility & contrast

On white

10.68
#381AB3 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.97
#381AB3 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381AB3
10.68:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381AB3#FFFFFF#000000##FFFFFF
##381AB31.0010.681.9710.68
#FFFFFF10.681.0021.001.00
#0000001.9721.001.0021.00
##FFFFFF10.681.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0044B7
Deuteranopia (green-blind)
#0038B0
Tritanopia (blue-blind)
#004C6A
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #381ab3;
/* rgb */ color: rgb(56, 26, 179);
/* oklch */ color: oklch(38.9% 0.216 278.4);
Tailwind
colors: {
  custom: {
    50: '#825ecb',
    500: '#381ab3',
    950: '#000000',
  },
}
SCSS
$custom: #381ab3;
$custom-light: #825ecb;
$custom-dark: #000000;
JSON
{
  "hex": "#381ab3",
  "rgb": {
    "r": 56,
    "g": 26,
    "b": 179
  },
  "hsl": {
    "h": 251.765,
    "s": 74.634,
    "l": 40.196
  },
  "oklch": {
    "l": 0.38933,
    "c": 0.21579,
    "h": 278.4
  },
  "luminance": 0.04834
}

Semantic roles & 50–950 ramp

primary
#381AB3
secondary
#B6CC5D
accent
#F137CD
background
#F8F5FC
surface
#F0EAF9
border
#CBC6D2
text
#0C0514
muted
#7D7982

Preview Lab

Preview with #381AB3

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

Preview Lab → · Contrast checker → · Palette generator →

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