#381FAC#381FAC

#381FAC is a dark, highly saturated violet. Relative luminance 0.048; OKLCH L 38.6% C 0.204 H 279.0°. Best body text is #FFFFFF at 10.72:1 contrast (WCAG AA passes).

Color values

HEX#381FAC
RGBrgb(56, 31, 172)
HSLhsl(251, 69%, 40%)
HSVhsv(251, 82%, 67%)
CMYKcmyk(67.4%, 82%, 0%, 32.5%)
CIE-LABlab(26.15, 50.88, -69.90)
CIE-LCHlch(26.15, 86.45, 306.05°)
OKLaboklab(38.63% 0.0319 -0.2018)
OKLCHoklch(38.63% 0.204 279)
XYZxyz(9.5649, 4.7985, 39.4439)
Luminance0.0480 (WCAG relative)
Temperaturecool
Familyviolet

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FAC #93AC1F
analogous
#1F4DAC #381FAC #7E1FAC
triadic
#381FAC #AC381F #1FAC38
tetradic
#381FAC #AC1F4D #93AC1F #1FAC7E
square
#381FAC #AC1F4D #93AC1F #1FAC7E
split-complementary
#381FAC #AC7E1F #4DAC1F
monochromatic
#160C44 #271678 #381FAC #4D2FD9 #7963E3

Accessibility & contrast

On white

10.72
#381FAC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

1.96
#381FAC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381FAC
10.72:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FAC#FFFFFF#000000##FFFFFF
##381FAC1.0010.721.9610.72
#FFFFFF10.721.0021.001.00
#0000001.9621.001.0021.00
##FFFFFF10.721.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0043B0
Deuteranopia (green-blind)
#0038AA
Tritanopia (blue-blind)
#004B67
Achromatopsia (no color)
#3E3E3E

Design tokens & code

CSS
--color: #381fac;
/* rgb */ color: rgb(56, 31, 172);
/* oklch */ color: oklch(38.6% 0.204 279.0);
Tailwind
colors: {
  custom: {
    50: '#8060c6',
    500: '#381fac',
    950: '#000000',
  },
}
SCSS
$custom: #381fac;
$custom-light: #8060c6;
$custom-dark: #000000;
JSON
{
  "hex": "#381fac",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 172
  },
  "hsl": {
    "h": 250.638,
    "s": 69.458,
    "l": 39.804
  },
  "oklch": {
    "l": 0.38629,
    "c": 0.20435,
    "h": 279
  },
  "luminance": 0.04799
}

Semantic roles & 50–950 ramp

primary
#381FAC
secondary
#B5C85F
accent
#EC3CCD
background
#F8F5FC
surface
#F0EAF8
border
#CBC6D1
text
#0C0513
muted
#7D7982

Preview Lab

Preview with #381FAC

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

Preview Lab → · Contrast checker → · Palette generator →

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