#3874CC#3874CC

#3874CC is a mid, vivid blue. Relative luminance 0.177; OKLCH L 56.4% C 0.150 H 258.1°. Best body text is #FFFFFF at 4.63:1 contrast (WCAG AA passes).

Color values

HEX#3874CC
RGBrgb(56, 116, 204)
HSLhsl(216, 59%, 51%)
HSVhsv(216, 73%, 80%)
CMYKcmyk(72.5%, 43.1%, 0%, 20%)
CIE-LABlab(49.12, 10.50, -51.28)
CIE-LCHlch(49.12, 52.34, 281.57°)
OKLaboklab(56.44% -0.0308 -0.1467)
OKLCHoklch(56.44% 0.15 258.1)
XYZxyz(18.7714, 17.6891, 59.5401)
Luminance0.1769 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874CC #CC9038
analogous
#38BECC #3874CC #4638CC
triadic
#3874CC #CC3874 #74CC38
tetradic
#3874CC #CC38BE #CC9038 #38CC46
square
#3874CC #CC38BE #CC9038 #38CC46
split-complementary
#3874CC #CC4638 #BECC38
monochromatic
#1C3D6E #29589E #3874CC #6996D8 #99B8E5

Accessibility & contrast

On white

4.63
#3874CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.54
#3874CC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3874CC
4.63:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874CC#FFFFFF#000000##FFFFFF
##3874CC1.004.634.544.63
#FFFFFF4.631.0021.001.00
#0000004.5421.001.0021.00
##FFFFFF4.631.0021.001.00

Color blindness preview

Protanopia (red-blind)
#497CCF
Deuteranopia (green-blind)
#2E6ECA
Tritanopia (blue-blind)
#008996
Achromatopsia (no color)
#757575

Design tokens & code

CSS
--color: #3874cc;
/* rgb */ color: rgb(56, 116, 204);
/* oklch */ color: oklch(56.4% 0.150 258.1);
Tailwind
colors: {
  custom: {
    50: '#819bdc',
    500: '#3874cc',
    950: '#000000',
  },
}
SCSS
$custom: #3874cc;
$custom-light: #819bdc;
$custom-dark: #000000;
JSON
{
  "hex": "#3874cc",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 204
  },
  "hsl": {
    "h": 215.676,
    "s": 59.2,
    "l": 50.98
  },
  "oklch": {
    "l": 0.56439,
    "c": 0.14988,
    "h": 258.1
  },
  "luminance": 0.17691
}

Semantic roles & 50–950 ramp

primary
#3874CC
secondary
#D1B68F
accent
#A345E2
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #3874CC

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

Preview Lab → · Contrast checker → · Palette generator →

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