#3874C8#3874C8

#3874C8 is a mid, vivid blue. Relative luminance 0.175; OKLCH L 56.2% C 0.145 H 257.4°. Best body text is #FFFFFF at 4.67:1 contrast (WCAG AA passes).

Color values

HEX#3874C8
RGBrgb(56, 116, 200)
HSLhsl(215, 57%, 50%)
HSVhsv(215, 72%, 78%)
CMYKcmyk(72%, 42%, 0%, 21.6%)
CIE-LABlab(48.88, 9.04, -49.36)
CIE-LCHlch(48.88, 50.18, 280.37°)
OKLaboklab(56.18% -0.0316 -0.1411)
OKLCHoklch(56.18% 0.145 257.4)
XYZxyz(18.2978, 17.4997, 57.0458)
Luminance0.1750 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874C8 #C88C38
analogous
#38BCC8 #3874C8 #4438C8
triadic
#3874C8 #C83874 #74C838
tetradic
#3874C8 #C838BC #C88C38 #38C844
square
#3874C8 #C838BC #C88C38 #38C844
split-complementary
#3874C8 #C84438 #BCC838
monochromatic
#1D3C69 #2A5899 #3874C8 #6895D5 #98B7E3

Accessibility & contrast

On white

4.67
#3874C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.50
#3874C8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3874C8
4.67:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874C8#FFFFFF#000000##FFFFFF
##3874C81.004.674.504.67
#FFFFFF4.671.0021.001.00
#0000004.5021.001.0021.00
##FFFFFF4.671.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C7BCB
Deuteranopia (green-blind)
#336EC6
Tritanopia (blue-blind)
#008894
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #3874c8;
/* rgb */ color: rgb(56, 116, 200);
/* oklch */ color: oklch(56.2% 0.145 257.4);
Tailwind
colors: {
  custom: {
    50: '#809bd9',
    500: '#3874c8',
    950: '#000000',
  },
}
SCSS
$custom: #3874c8;
$custom-light: #809bd9;
$custom-dark: #000000;
JSON
{
  "hex": "#3874c8",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 200
  },
  "hsl": {
    "h": 215,
    "s": 56.693,
    "l": 50.196
  },
  "oklch": {
    "l": 0.56183,
    "c": 0.14456,
    "h": 257.4
  },
  "luminance": 0.17502
}

Semantic roles & 50–950 ramp

primary
#3874C8
secondary
#CEB38E
accent
#A148E0
background
#F8F9FD
surface
#F0F2FA
border
#CBCCD3
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #3874C8

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

Preview Lab → · Contrast checker → · Palette generator →

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