#3874CD#3874CD

#3874CD is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.5% C 0.151 H 258.3°. Best body text is #FFFFFF at 4.62:1 contrast (WCAG AA passes).

Color values

HEX#3874CD
RGBrgb(56, 116, 205)
HSLhsl(216, 60%, 51%)
HSVhsv(216, 73%, 80%)
CMYKcmyk(72.7%, 43.4%, 0%, 19.6%)
CIE-LABlab(49.18, 10.87, -51.75)
CIE-LCHlch(49.18, 52.88, 281.86°)
OKLaboklab(56.5% -0.0306 -0.1481)
OKLCHoklch(56.5% 0.151 258.3)
XYZxyz(18.8917, 17.7372, 60.1738)
Luminance0.1774 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874CD #CD9138
analogous
#38BECD #3874CD #4638CD
triadic
#3874CD #CD3874 #74CD38
tetradic
#3874CD #CD38BE #CD9138 #38CD46
square
#3874CD #CD38BE #CD9138 #38CD46
split-complementary
#3874CD #CD4638 #BECD38
monochromatic
#1C3D6F #2858A0 #3874CD #6996D9 #9AB8E6

Accessibility & contrast

On white

4.62
#3874CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.55
#3874CD on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3874CD
4.62:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874CD#FFFFFF#000000##FFFFFF
##3874CD1.004.624.554.62
#FFFFFF4.621.0021.001.00
#0000004.5521.001.0021.00
##FFFFFF4.621.0021.001.00

Color blindness preview

Protanopia (red-blind)
#487CD0
Deuteranopia (green-blind)
#2C6FCB
Tritanopia (blue-blind)
#008996
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3874cd;
/* rgb */ color: rgb(56, 116, 205);
/* oklch */ color: oklch(56.5% 0.151 258.3);
Tailwind
colors: {
  custom: {
    50: '#819bdd',
    500: '#3874cd',
    950: '#000000',
  },
}
SCSS
$custom: #3874cd;
$custom-light: #819bdd;
$custom-dark: #000000;
JSON
{
  "hex": "#3874cd",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 205
  },
  "hsl": {
    "h": 215.839,
    "s": 59.839,
    "l": 51.176
  },
  "oklch": {
    "l": 0.56504,
    "c": 0.15121,
    "h": 258.3
  },
  "luminance": 0.17739
}

Semantic roles & 50–950 ramp

primary
#3874CD
secondary
#D1B78F
accent
#A345E3
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #3874CD

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

Preview Lab → · Contrast checker → · Palette generator →

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