#387EF2#387EF2

#387EF2 is a mid, vivid blue. Relative luminance 0.222; OKLCH L 61.1% C 0.188 H 260.0°. Best body text is #000000 at 5.43:1 contrast (WCAG AA passes).

Color values

HEX#387EF2
RGBrgb(56, 126, 242)
HSLhsl(217, 88%, 58%)
HSVhsv(217, 77%, 95%)
CMYKcmyk(76.9%, 47.9%, 0%, 5.1%)
CIE-LABlab(54.21, 18.22, -64.50)
CIE-LCHlch(54.21, 67.03, 285.78°)
OKLaboklab(61.11% -0.0326 -0.1854)
OKLCHoklch(61.11% 0.188 260)
XYZxyz(25.1129, 22.1703, 86.9429)
Luminance0.2217 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#387EF2 #F2AC38
analogous
#38DBF2 #387EF2 #4F38F2
triadic
#387EF2 #F2387E #7EF238
tetradic
#387EF2 #F238DB #F2AC38 #38F24F
square
#387EF2 #F238DB #F2AC38 #38F24F
split-complementary
#387EF2 #F24F38 #DBF238
monochromatic
#0B45A5 #0F5DDE #387EF2 #71A3F6 #ABC8FA

Accessibility & contrast

On white

3.86
#387EF2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.43
#387EF2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #387EF2
5.43:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##387EF2#FFFFFF#000000##000000
##387EF21.003.865.435.43
#FFFFFF3.861.0021.0021.00
#0000005.4321.001.001.00
##0000005.4321.001.001.00

Color blindness preview

Protanopia (red-blind)
#3B8BF6
Deuteranopia (green-blind)
#007AF0
Tritanopia (blue-blind)
#009AAC
Achromatopsia (no color)
#828282

Design tokens & code

CSS
--color: #387ef2;
/* rgb */ color: rgb(56, 126, 242);
/* oklch */ color: oklch(61.1% 0.188 260.0);
Tailwind
colors: {
  custom: {
    50: '#88a2f7',
    500: '#387ef2',
    950: '#000000',
  },
}
SCSS
$custom: #387ef2;
$custom-light: #88a2f7;
$custom-dark: #000000;
JSON
{
  "hex": "#387ef2",
  "rgb": {
    "r": 56,
    "g": 126,
    "b": 242
  },
  "hsl": {
    "h": 217.419,
    "s": 87.736,
    "l": 58.431
  },
  "oklch": {
    "l": 0.61109,
    "c": 0.18825,
    "h": 260
  },
  "luminance": 0.22173
}

Semantic roles & 50–950 ramp

primary
#387EF2
secondary
#E8CC9E
accent
#AE2AFE
background
#F9F9FF
surface
#F2F2FF
border
#CCCCD7
text
#0D0F17
muted
#7E7E85

Preview Lab

Preview with #387EF2

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

Preview Lab → · Contrast checker → · Palette generator →

#387EF2 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva