#3874BA#3874BA

#3874BA is a mid, vivid cyan. Relative luminance 0.169; OKLCH L 55.3% C 0.126 H 254.0°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#3874BA
RGBrgb(56, 116, 186)
HSLhsl(212, 54%, 47%)
HSVhsv(212, 70%, 73%)
CMYKcmyk(69.9%, 37.6%, 0%, 27.1%)
CIE-LABlab(48.10, 3.94, -42.56)
CIE-LCHlch(48.10, 42.74, 275.30°)
OKLaboklab(55.32% -0.0348 -0.1211)
OKLCHoklch(55.32% 0.126 254)
XYZxyz(16.7359, 16.8749, 48.8200)
Luminance0.1688 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#3874BA #BA7E38
analogous
#38B5BA #3874BA #3D38BA
triadic
#3874BA #BA3874 #74BA38
tetradic
#3874BA #BA38B5 #BA7E38 #38BA3D
square
#3874BA #BA38B5 #BA7E38 #38BA3D
split-complementary
#3874BA #BA3D38 #B5BA38
monochromatic
#1C395C #2A578B #3874BA #6093CF #8FB3DD

Accessibility & contrast

On white

4.80
#3874BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#3874BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #3874BA
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##3874BA#FFFFFF#000000##FFFFFF
##3874BA1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5479BD
Deuteranopia (green-blind)
#416DB9
Tritanopia (blue-blind)
#00848E
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #3874ba;
/* rgb */ color: rgb(56, 116, 186);
/* oklch */ color: oklch(55.3% 0.126 254.0);
Tailwind
colors: {
  custom: {
    50: '#7e9bcf',
    500: '#3874ba',
    950: '#000000',
  },
}
SCSS
$custom: #3874ba;
$custom-light: #7e9bcf;
$custom-dark: #000000;
JSON
{
  "hex": "#3874ba",
  "rgb": {
    "r": 56,
    "g": 116,
    "b": 186
  },
  "hsl": {
    "h": 212.308,
    "s": 53.719,
    "l": 47.451
  },
  "oklch": {
    "l": 0.55321,
    "c": 0.12599,
    "h": 254
  },
  "luminance": 0.16877
}

Semantic roles & 50–950 ramp

primary
#3874BA
secondary
#C8A986
accent
#9A4BDD
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0E14
muted
#7C7E82

Preview Lab

Preview with #3874BA

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

Preview Lab → · Contrast checker → · Palette generator →

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