#2874A4#2874A4

#2874A4 is a mid, moderate cyan. Relative luminance 0.156; OKLCH L 53.5% C 0.105 H 240.8°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2874A4
RGBrgb(40, 116, 164)
HSLhsl(203, 61%, 40%)
HSVhsv(203, 76%, 64%)
CMYKcmyk(75.6%, 29.3%, 0%, 35.7%)
CIE-LABlab(46.47, -6.37, -32.36)
CIE-LCHlch(46.47, 32.98, 258.87°)
OKLaboklab(53.53% -0.0511 -0.0915)
OKLCHoklch(53.53% 0.105 240.8)
XYZxyz(13.8187, 15.6206, 37.4016)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2874A4 #A45828
analogous
#28A496 #2874A4 #2836A4
triadic
#2874A4 #A42874 #74A428
tetradic
#2874A4 #9628A4 #A45828 #36A428
square
#2874A4 #9628A4 #A45828 #36A428
split-complementary
#2874A4 #A42836 #A49628
monochromatic
#102E42 #1C5173 #2874A4 #3A95CF #6BB0DB

Accessibility & contrast

On white

5.09
#2874A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2874A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2874A4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2874A4#FFFFFF#000000##FFFFFF
##2874A41.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5E75A6
Deuteranopia (green-blind)
#4D69A3
Tritanopia (blue-blind)
#008085
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2874a4;
/* rgb */ color: rgb(40, 116, 164);
/* oklch */ color: oklch(53.5% 0.105 240.8);
Tailwind
colors: {
  custom: {
    50: '#749bbf',
    500: '#2874a4',
    950: '#000000',
  },
}
SCSS
$custom: #2874a4;
$custom-light: #749bbf;
$custom-dark: #000000;
JSON
{
  "hex": "#2874a4",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 164
  },
  "hsl": {
    "h": 203.226,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.5353,
    "c": 0.10479,
    "h": 240.8
  },
  "luminance": 0.15622
}

Semantic roles & 50–950 ramp

primary
#2874A4
secondary
#C18A66
accent
#8244E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2874A4

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

Preview Lab → · Contrast checker → · Palette generator →

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