#2874C5#2874C5

#2874C5 is a mid, vivid cyan. Relative luminance 0.170; OKLCH L 55.5% C 0.146 H 253.2°. Best body text is #FFFFFF at 4.78:1 contrast (WCAG AA passes).

Color values

HEX#2874C5
RGBrgb(40, 116, 197)
HSLhsl(211, 66%, 46%)
HSVhsv(211, 80%, 77%)
CMYKcmyk(79.7%, 41.1%, 0%, 22.7%)
CIE-LABlab(48.22, 5.96, -48.73)
CIE-LCHlch(48.22, 49.09, 276.97°)
OKLaboklab(55.48% -0.042 -0.1394)
OKLCHoklch(55.48% 0.146 253.2)
XYZxyz(17.1947, 16.9710, 55.1820)
Luminance0.1697 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2874C5 #C57928
analogous
#28C3C5 #2874C5 #2A28C5
triadic
#2874C5 #C52874 #74C528
tetradic
#2874C5 #C528C3 #C57928 #28C52A
square
#2874C5 #C528C3 #C57928 #28C52A
split-complementary
#2874C5 #C52A28 #C3C528
monochromatic
#13385F #1E5692 #2874C5 #4F93DB #82B2E6

Accessibility & contrast

On white

4.78
#2874C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2874C5
4.78:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2874C5#FFFFFF#000000##FFFFFF
##2874C51.004.784.394.78
#FFFFFF4.781.0021.001.00
#0000004.3921.001.0021.00
##FFFFFF4.781.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4C7AC8
Deuteranopia (green-blind)
#316CC3
Tritanopia (blue-blind)
#008793
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2874c5;
/* rgb */ color: rgb(40, 116, 197);
/* oklch */ color: oklch(55.5% 0.146 253.2);
Tailwind
colors: {
  custom: {
    50: '#7a9bd7',
    500: '#2874c5',
    950: '#000000',
  },
}
SCSS
$custom: #2874c5;
$custom-light: #7a9bd7;
$custom-dark: #000000;
JSON
{
  "hex": "#2874c5",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 197
  },
  "hsl": {
    "h": 210.955,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.55477,
    "c": 0.14556,
    "h": 253.2
  },
  "luminance": 0.16973
}

Semantic roles & 50–950 ramp

primary
#2874C5
secondary
#CEA67A
accent
#973FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0E14
muted
#7C7E83

Preview Lab

Preview with #2874C5

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

Preview Lab → · Contrast checker → · Palette generator →

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