#2874B3#2874B3

#2874B3 is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.4% C 0.123 H 247.7°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2874B3
RGBrgb(40, 116, 179)
HSLhsl(207, 63%, 43%)
HSVhsv(207, 78%, 70%)
CMYKcmyk(77.7%, 35.2%, 0%, 29.8%)
CIE-LABlab(47.23, -0.82, -39.92)
CIE-LCHlch(47.23, 39.92, 268.82°)
OKLaboklab(54.37% -0.0465 -0.1135)
OKLCHoklch(54.37% 0.123 247.7)
XYZxyz(15.2540, 16.1948, 44.9610)
Luminance0.1620 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2874B3 #B36728
analogous
#28B3AC #2874B3 #282FB3
triadic
#2874B3 #B32874 #74B328
tetradic
#2874B3 #AC28B3 #B36728 #2FB328
square
#2874B3 #AC28B3 #B36728 #2FB328
split-complementary
#2874B3 #B3282F #B3AC28
monochromatic
#12334F #1D5481 #2874B3 #4393D5 #75B0E0

Accessibility & contrast

On white

4.95
#2874B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#2874B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2874B3
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2874B3#FFFFFF#000000##FFFFFF
##2874B31.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5777B6
Deuteranopia (green-blind)
#436AB2
Tritanopia (blue-blind)
#00838B
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2874b3;
/* rgb */ color: rgb(40, 116, 179);
/* oklch */ color: oklch(54.4% 0.123 247.7);
Tailwind
colors: {
  custom: {
    50: '#779bca',
    500: '#2874b3',
    950: '#000000',
  },
}
SCSS
$custom: #2874b3;
$custom-light: #779bca;
$custom-dark: #000000;
JSON
{
  "hex": "#2874b3",
  "rgb": {
    "r": 40,
    "g": 116,
    "b": 179
  },
  "hsl": {
    "h": 207.194,
    "s": 63.47,
    "l": 42.941
  },
  "oklch": {
    "l": 0.54375,
    "c": 0.12271,
    "h": 247.7
  },
  "luminance": 0.16197
}

Semantic roles & 50–950 ramp

primary
#2874B3
secondary
#C8976F
accent
#8C41E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0E13
muted
#7C7E82

Preview Lab

Preview with #2874B3

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

Preview Lab → · Contrast checker → · Palette generator →

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