#381FC2#381FC2

#381FC2 is a dark, highly saturated blue. Relative luminance 0.057; OKLCH L 41.1% C 0.229 H 276.3°. Best body text is #FFFFFF at 9.80:1 contrast (WCAG AA passes).

Color values

HEX#381FC2
RGBrgb(56, 31, 194)
HSLhsl(249, 72%, 44%)
HSVhsv(249, 84%, 76%)
CMYKcmyk(71.1%, 84%, 0%, 23.9%)
CIE-LABlab(28.68, 57.23, -78.80)
CIE-LCHlch(28.68, 97.39, 305.99°)
OKLaboklab(41.1% 0.0251 -0.2277)
OKLCHoklch(41.1% 0.229 276.3)
XYZxyz(11.8553, 5.7146, 51.5067)
Luminance0.0572 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FC2 #A9C21F
analogous
#1F58C2 #381FC2 #891FC2
triadic
#381FC2 #C2381F #1FC238
tetradic
#381FC2 #C21F58 #A9C21F #1FC289
square
#381FC2 #C21F58 #A9C21F #1FC289
split-complementary
#381FC2 #C2891F #58C21F
monochromatic
#1A0E58 #29178D #381FC2 #573EE0 #8573E9

Accessibility & contrast

On white

9.80
#381FC2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.14
#381FC2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381FC2
9.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FC2#FFFFFF#000000##FFFFFF
##381FC21.009.802.149.80
#FFFFFF9.801.0021.001.00
#0000002.1421.001.0021.00
##FFFFFF9.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#004AC6
Deuteranopia (green-blind)
#003CBF
Tritanopia (blue-blind)
#005474
Achromatopsia (no color)
#444444

Design tokens & code

CSS
--color: #381fc2;
/* rgb */ color: rgb(56, 31, 194);
/* oklch */ color: oklch(41.1% 0.229 276.3);
Tailwind
colors: {
  custom: {
    50: '#8562d6',
    500: '#381fc2',
    950: '#000000',
  },
}
SCSS
$custom: #381fc2;
$custom-light: #8562d6;
$custom-dark: #000000;
JSON
{
  "hex": "#381fc2",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 194
  },
  "hsl": {
    "h": 249.202,
    "s": 72.444,
    "l": 44.118
  },
  "oklch": {
    "l": 0.41103,
    "c": 0.22907,
    "h": 276.3
  },
  "luminance": 0.05716
}

Semantic roles & 50–950 ramp

primary
#381FC2
secondary
#C0CF6D
accent
#EF39D3
background
#F9F6FD
surface
#F1EBFA
border
#CBC6D3
text
#0D0515
muted
#7E7A83

Preview Lab

Preview with #381FC2

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

Preview Lab → · Contrast checker → · Palette generator →

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