#2874C4#2874C4

#2874C4 is a mid, vivid cyan. Relative luminance 0.169; OKLCH L 55.4% C 0.144 H 253.0°. Best body text is #FFFFFF at 4.79:1 contrast (WCAG AA passes).

Color values

HEX#2874C4
RGBrgb(40, 116, 196)
HSLhsl(211, 66%, 46%)
HSVhsv(211, 80%, 77%)
CMYKcmyk(79.6%, 40.8%, 0%, 23.1%)
CIE-LABlab(48.17, 5.58, -48.24)
CIE-LCHlch(48.17, 48.57, 276.60°)
OKLaboklab(55.41% -0.0422 -0.138)
OKLCHoklch(55.41% 0.144 253)
XYZxyz(17.0805, 16.9254, 54.5806)
Luminance0.1693 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2874C4 #C47828
analogous
#28C2C4 #2874C4 #2A28C4
triadic
#2874C4 #C42874 #74C428
tetradic
#2874C4 #C428C2 #C47828 #28C42A
square
#2874C4 #C428C2 #C47828 #28C42A
split-complementary
#2874C4 #C42A28 #C2C428
monochromatic
#13385E #1E5691 #2874C4 #4E93DB #81B2E5

Accessibility & contrast

On white

4.79
#2874C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.39
#2874C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2874C4
4.79:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2874C4#FFFFFF#000000##FFFFFF
##2874C41.004.794.394.79
#FFFFFF4.791.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.791.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D7AC7
Deuteranopia (green-blind)
#326CC2
Tritanopia (blue-blind)
#008792
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2874c4;
/* rgb */ color: rgb(40, 116, 196);
/* oklch */ color: oklch(55.4% 0.144 253.0);
Tailwind
colors: {
  custom: {
    50: '#7a9bd6',
    500: '#2874c4',
    950: '#000000',
  },
}
SCSS
$custom: #2874c4;
$custom-light: #7a9bd6;
$custom-dark: #000000;
JSON
{
  "hex": "#2874c4",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 196
  },
  "hsl": {
    "h": 210.769,
    "s": 66.102,
    "l": 46.275
  },
  "oklch": {
    "l": 0.55413,
    "c": 0.14428,
    "h": 253
  },
  "luminance": 0.16927
}

Semantic roles & 50–950 ramp

primary
#2874C4
secondary
#CEA57A
accent
#963FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0E14
muted
#7C7E83

Preview Lab

Preview with #2874C4

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

Preview Lab → · Contrast checker → · Palette generator →

#2874C4 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva