#381FBC#381FBC

#381FBC is a dark, highly saturated blue. Relative luminance 0.055; OKLCH L 40.4% C 0.222 H 276.9°. Best body text is #FFFFFF at 10.05:1 contrast (WCAG AA passes).

Color values

HEX#381FBC
RGBrgb(56, 31, 188)
HSLhsl(250, 72%, 43%)
HSVhsv(250, 84%, 74%)
CMYKcmyk(70.2%, 83.5%, 0%, 26.3%)
CIE-LABlab(27.98, 55.52, -76.42)
CIE-LCHlch(27.98, 94.45, 306.00°)
OKLaboklab(40.42% 0.0269 -0.2208)
OKLCHoklch(40.42% 0.222 276.9)
XYZxyz(11.1950, 5.4505, 48.0293)
Luminance0.0545 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#381FBC #A3BC1F
analogous
#1F55BC #381FBC #861FBC
triadic
#381FBC #BC381F #1FBC38
tetradic
#381FBC #BC1F55 #A3BC1F #1FBC86
square
#381FBC #BC1F55 #A3BC1F #1FBC86
split-complementary
#381FBC #BC861F #55BC1F
monochromatic
#190E53 #281687 #381FBC #543ADE #826EE7

Accessibility & contrast

On white

10.05
#381FBC on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.09
#381FBC on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #381FBC
10.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##381FBC#FFFFFF#000000##FFFFFF
##381FBC1.0010.052.0910.05
#FFFFFF10.051.0021.001.00
#0000002.0921.001.0021.00
##FFFFFF10.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0048C0
Deuteranopia (green-blind)
#003BB9
Tritanopia (blue-blind)
#005270
Achromatopsia (no color)
#424242

Design tokens & code

CSS
--color: #381fbc;
/* rgb */ color: rgb(56, 31, 188);
/* oklch */ color: oklch(40.4% 0.222 276.9);
Tailwind
colors: {
  custom: {
    50: '#8361d2',
    500: '#381fbc',
    950: '#000000',
  },
}
SCSS
$custom: #381fbc;
$custom-light: #8361d2;
$custom-dark: #000000;
JSON
{
  "hex": "#381fbc",
  "rgb": {
    "r": 56,
    "g": 31,
    "b": 188
  },
  "hsl": {
    "h": 249.554,
    "s": 71.689,
    "l": 42.941
  },
  "oklch": {
    "l": 0.40421,
    "c": 0.22241,
    "h": 276.9
  },
  "luminance": 0.05452
}

Semantic roles & 50–950 ramp

primary
#381FBC
secondary
#BDCD69
accent
#EE39D2
background
#F8F6FD
surface
#F0EBFA
border
#CBC6D3
text
#0D0514
muted
#7D7A83

Preview Lab

Preview with #381FBC

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

Preview Lab → · Contrast checker → · Palette generator →

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