#3874CA#3874CA

#3874CA is a mid, vivid blue. Relative luminance 0.176; OKLCH L 56.3% C 0.147 H 257.8°. Best body text is #FFFFFF at 4.65:1 contrast (WCAG AA passes).

Color values

HEX#3874CA
RGBrgb(56, 116, 202)
HSLhsl(215, 58%, 51%)
HSVhsv(215, 72%, 79%)
CMYKcmyk(72.3%, 42.6%, 0%, 20.8%)
CIE-LABlab(49.00, 9.77, -50.32)
CIE-LCHlch(49.00, 51.26, 280.98°)
OKLaboklab(56.31% -0.0312 -0.1439)
OKLCHoklch(56.31% 0.147 257.8)
XYZxyz(18.5331, 17.5938, 58.2849)
Luminance0.1760 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874CA #CA8E38
analogous
#38BDCA #3874CA #4538CA
triadic
#3874CA #CA3874 #74CA38
tetradic
#3874CA #CA38BD #CA8E38 #38CA45
square
#3874CA #CA38BD #CA8E38 #38CA45
split-complementary
#3874CA #CA4538 #BDCA38
monochromatic
#1D3D6B #29589B #3874CA #6896D7 #99B8E4

Accessibility & contrast

On white

4.65
#3874CA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.52
#3874CA on #000000
AA ✓AA large ✓AAA ✗

Best text color

#FFFFFF on #3874CA
4.65:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874CA#FFFFFF#000000##FFFFFF
##3874CA1.004.654.524.65
#FFFFFF4.651.0021.001.00
#0000004.5221.001.0021.00
##FFFFFF4.651.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A7CCD
Deuteranopia (green-blind)
#316EC8
Tritanopia (blue-blind)
#008895
Achromatopsia (no color)
#747474

Design tokens & code

CSS
--color: #3874ca;
/* rgb */ color: rgb(56, 116, 202);
/* oklch */ color: oklch(56.3% 0.147 257.8);
Tailwind
colors: {
  custom: {
    50: '#819bda',
    500: '#3874ca',
    950: '#000000',
  },
}
SCSS
$custom: #3874ca;
$custom-light: #819bda;
$custom-dark: #000000;
JSON
{
  "hex": "#3874ca",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 202
  },
  "hsl": {
    "h": 215.342,
    "s": 57.937,
    "l": 50.588
  },
  "oklch": {
    "l": 0.56311,
    "c": 0.14723,
    "h": 257.8
  },
  "luminance": 0.17596
}

Semantic roles & 50–950 ramp

primary
#3874CA
secondary
#CFB58E
accent
#A247E1
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0E15
muted
#7D7E83

Preview Lab

Preview with #3874CA

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

Preview Lab → · Contrast checker → · Palette generator →

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