#2874A8#2874A8

#2874A8 is a mid, moderate cyan. Relative luminance 0.158; OKLCH L 53.7% C 0.109 H 242.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2874A8
RGBrgb(40, 116, 168)
HSLhsl(204, 62%, 41%)
HSVhsv(204, 76%, 66%)
CMYKcmyk(76.2%, 31%, 0%, 34.1%)
CIE-LABlab(46.67, -4.90, -34.39)
CIE-LCHlch(46.67, 34.74, 261.89°)
OKLaboklab(53.75% -0.0498 -0.0974)
OKLCHoklch(53.75% 0.109 242.9)
XYZxyz(14.1856, 15.7674, 39.3340)
Luminance0.1577 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2874A8 #A85C28
analogous
#28A89C #2874A8 #2834A8
triadic
#2874A8 #A82874 #74A828
tetradic
#2874A8 #9C28A8 #A85C28 #34A828
square
#2874A8 #9C28A8 #A85C28 #34A828
split-complementary
#2874A8 #A82834 #A89C28
monochromatic
#103045 #1C5277 #2874A8 #3D94D1 #6EB0DC

Accessibility & contrast

On white

5.06
#2874A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2874A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2874A8
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2874A8#FFFFFF#000000##FFFFFF
##2874A81.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5C75AA
Deuteranopia (green-blind)
#4A69A7
Tritanopia (blue-blind)
#008186
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2874a8;
/* rgb */ color: rgb(40, 116, 168);
/* oklch */ color: oklch(53.7% 0.109 242.9);
Tailwind
colors: {
  custom: {
    50: '#749bc2',
    500: '#2874a8',
    950: '#000000',
  },
}
SCSS
$custom: #2874a8;
$custom-light: #749bc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2874a8",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 168
  },
  "hsl": {
    "h": 204.375,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.53748,
    "c": 0.10941,
    "h": 242.9
  },
  "luminance": 0.15769
}

Semantic roles & 50–950 ramp

primary
#2874A8
secondary
#C38D69
accent
#8543E5
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090E12
muted
#7B7E81

Preview Lab

Preview with #2874A8

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

Preview Lab → · Contrast checker → · Palette generator →

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