#3874E3#3874E3

#3874E3 is a mid, vivid blue. Relative luminance 0.189; OKLCH L 58.0% C 0.180 H 261.4°. Best body text is #000000 at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#3874E3
RGBrgb(56, 116, 227)
HSLhsl(219, 75%, 55%)
HSVhsv(219, 75%, 89%)
CMYKcmyk(75.3%, 48.9%, 0%, 11%)
CIE-LABlab(50.54, 18.95, -62.03)
CIE-LCHlch(50.54, 64.86, 286.99°)
OKLaboklab(57.99% -0.027 -0.1783)
OKLCHoklch(57.99% 0.18 261.4)
XYZxyz(21.7364, 18.8751, 75.1558)
Luminance0.1888 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874E3 #E3A738
analogous
#38CAE3 #3874E3 #5138E3
triadic
#3874E3 #E33874 #74E338
tetradic
#3874E3 #E338CA #E3A738 #38E351
square
#3874E3 #E338CA #E3A738 #38E351
split-complementary
#3874E3 #E35138 #CAE338
monochromatic
#143E8D #1B56C2 #3874E3 #6E99EB #A3BFF2

Accessibility & contrast

On white

4.40
#3874E3 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

4.78
#3874E3 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3874E3
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874E3#FFFFFF#000000##000000
##3874E31.004.404.784.78
#FFFFFF4.401.0021.0021.00
#0000004.7821.001.001.00
##0000004.7821.001.001.00

Color blindness preview

Protanopia (red-blind)
#3281E7
Deuteranopia (green-blind)
#0071E1
Tritanopia (blue-blind)
#008FA1
Achromatopsia (no color)
#787878

Design tokens & code

CSS
--color: #3874e3;
/* rgb */ color: rgb(56, 116, 227);
/* oklch */ color: oklch(58.0% 0.180 261.4);
Tailwind
colors: {
  custom: {
    50: '#869bec',
    500: '#3874e3',
    950: '#000000',
  },
}
SCSS
$custom: #3874e3;
$custom-light: #869bec;
$custom-dark: #000000;
JSON
{
  "hex": "#3874e3",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 227
  },
  "hsl": {
    "h": 218.947,
    "s": 75.33,
    "l": 55.49
  },
  "oklch": {
    "l": 0.57992,
    "c": 0.18034,
    "h": 261.4
  },
  "luminance": 0.18878
}

Semantic roles & 50–950 ramp

primary
#3874E3
secondary
#DFC698
accent
#B036F2
background
#F9F9FE
surface
#F1F2FD
border
#CBCCD5
text
#0D0E16
muted
#7E7E84

Preview Lab

Preview with #3874E3

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

Preview Lab → · Contrast checker → · Palette generator →

#3874E3 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva