#3874D8#3874D8

#3874D8 is a mid, vivid blue. Relative luminance 0.183; OKLCH L 57.2% C 0.166 H 260.0°. Best body text is #000000 at 4.66:1 contrast (WCAG AA passes).

Color values

HEX#3874D8
RGBrgb(56, 116, 216)
HSLhsl(218, 67%, 53%)
HSVhsv(218, 74%, 85%)
CMYKcmyk(74.1%, 46.3%, 0%, 15.3%)
CIE-LABlab(49.84, 14.91, -56.94)
CIE-LCHlch(49.84, 58.86, 284.67°)
OKLaboklab(57.23% -0.0287 -0.1633)
OKLCHoklch(57.23% 0.166 260)
XYZxyz(20.2665, 18.2871, 67.4141)
Luminance0.1829 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874D8 #D89C38
analogous
#38C4D8 #3874D8 #4C38D8
triadic
#3874D8 #D83874 #74D838
tetradic
#3874D8 #D838C4 #D89C38 #38D84C
square
#3874D8 #D838C4 #D89C38 #38D84C
split-complementary
#3874D8 #D84C38 #C4D838
monochromatic
#193E7D #2358B0 #3874D8 #6B98E2 #9EBBEC

Accessibility & contrast

On white

4.51
#3874D8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.66
#3874D8 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #3874D8
4.66:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874D8#FFFFFF#000000##000000
##3874D81.004.514.664.66
#FFFFFF4.511.0021.0021.00
#0000004.6621.001.001.00
##0000004.6621.001.001.00

Color blindness preview

Protanopia (red-blind)
#3F7EDC
Deuteranopia (green-blind)
#1770D6
Tritanopia (blue-blind)
#008C9B
Achromatopsia (no color)
#777777

Design tokens & code

CSS
--color: #3874d8;
/* rgb */ color: rgb(56, 116, 216);
/* oklch */ color: oklch(57.2% 0.166 260.0);
Tailwind
colors: {
  custom: {
    50: '#839be5',
    500: '#3874d8',
    950: '#000000',
  },
}
SCSS
$custom: #3874d8;
$custom-light: #839be5;
$custom-dark: #000000;
JSON
{
  "hex": "#3874d8",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 216
  },
  "hsl": {
    "h": 217.5,
    "s": 67.227,
    "l": 53.333
  },
  "oklch": {
    "l": 0.57233,
    "c": 0.16583,
    "h": 260
  },
  "luminance": 0.18289
}

Semantic roles & 50–950 ramp

primary
#3874D8
secondary
#D8BE93
accent
#A93EEA
background
#F8F9FE
surface
#F0F2FC
border
#CBCCD5
text
#0C0E16
muted
#7D7E84

Preview Lab

Preview with #3874D8

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

Preview Lab → · Contrast checker → · Palette generator →

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