#2873C5#2873C5

#2873C5 is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.3% C 0.147 H 253.7°. Best body text is #FFFFFF at 4.83:1 contrast (WCAG AA passes).

Color values

HEX#2873C5
RGBrgb(40, 115, 197)
HSLhsl(211, 66%, 46%)
HSVhsv(211, 80%, 77%)
CMYKcmyk(79.7%, 41.6%, 0%, 22.7%)
CIE-LABlab(47.93, 6.58, -49.19)
CIE-LCHlch(47.93, 49.63, 277.62°)
OKLaboklab(55.25% -0.0411 -0.1408)
OKLCHoklch(55.25% 0.147 253.7)
XYZxyz(17.0801, 16.7417, 55.1438)
Luminance0.1674 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2873C5 #C57A28
analogous
#28C2C5 #2873C5 #2C28C5
triadic
#2873C5 #C52873 #73C528
tetradic
#2873C5 #C528C2 #C57A28 #28C52C
square
#2873C5 #C528C2 #C57A28 #28C52C
split-complementary
#2873C5 #C52C28 #C2C528
monochromatic
#13385F #1E5592 #2873C5 #4F92DB #82B1E6

Accessibility & contrast

On white

4.83
#2873C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.35
#2873C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2873C5
4.83:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2873C5#FFFFFF#000000##FFFFFF
##2873C51.004.834.354.83
#FFFFFF4.831.0021.001.00
#0000004.3521.001.0021.00
##FFFFFF4.831.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A79C8
Deuteranopia (green-blind)
#2F6BC3
Tritanopia (blue-blind)
#008692
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2873c5;
/* rgb */ color: rgb(40, 115, 197);
/* oklch */ color: oklch(55.3% 0.147 253.7);
Tailwind
colors: {
  custom: {
    50: '#7a9ad7',
    500: '#2873c5',
    950: '#000000',
  },
}
SCSS
$custom: #2873c5;
$custom-light: #7a9ad7;
$custom-dark: #000000;
JSON
{
  "hex": "#2873c5",
  "rgb": {
    "r": 40,
    "g": 115,
    "b": 197
  },
  "hsl": {
    "h": 211.338,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.5525,
    "c": 0.14665,
    "h": 253.7
  },
  "luminance": 0.16744
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2873C5

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

Preview Lab → · Contrast checker → · Palette generator →

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