#2787AC#2787AC

#2787AC is a mid, moderate cyan. Relative luminance 0.207; OKLCH L 58.6% C 0.102 H 228.7°. Best body text is #000000 at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2787AC
RGBrgb(39, 135, 172)
HSLhsl(197, 63%, 41%)
HSVhsv(197, 77%, 67%)
CMYKcmyk(77.3%, 21.5%, 0%, 32.5%)
CIE-LABlab(52.66, -14.54, -27.36)
CIE-LCHlch(52.66, 30.99, 242.01°)
OKLaboklab(58.57% -0.0674 -0.0769)
OKLCHoklch(58.57% 0.102 228.7)
XYZxyz(16.9440, 20.7358, 42.1311)
Luminance0.2074 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2787AC #AC4C27
analogous
#27AC8F #2787AC #2745AC
triadic
#2787AC #AC2787 #87AC27
tetradic
#2787AC #8F27AC #AC4C27 #45AC27
square
#2787AC #8F27AC #AC4C27 #45AC27
split-complementary
#2787AC #AC2745 #AC8F27
monochromatic
#103948 #1C607A #2787AC #3DA9D3 #6FBFDE

Accessibility & contrast

On white

4.08
#2787AC on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.15
#2787AC on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2787AC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2787AC#FFFFFF#000000##000000
##2787AC1.004.085.155.15
#FFFFFF4.081.0021.0021.00
#0000005.1521.001.001.00
##0000005.1521.001.001.00

Color blindness preview

Protanopia (red-blind)
#7485AE
Deuteranopia (green-blind)
#6278AB
Tritanopia (blue-blind)
#009193
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2787ac;
/* rgb */ color: rgb(39, 135, 172);
/* oklch */ color: oklch(58.6% 0.102 228.7);
Tailwind
colors: {
  custom: {
    50: '#76aac5',
    500: '#2787ac',
    950: '#000000',
  },
}
SCSS
$custom: #2787ac;
$custom-light: #76aac5;
$custom-dark: #000000;
JSON
{
  "hex": "#2787ac",
  "rgb": {
    "r": 39,
    "g": 135,
    "b": 172
  },
  "hsl": {
    "h": 196.692,
    "s": 63.033,
    "l": 41.373
  },
  "oklch": {
    "l": 0.58567,
    "c": 0.10227,
    "h": 228.7
  },
  "luminance": 0.20738
}

Semantic roles & 50–950 ramp

primary
#2787AC
secondary
#C5836A
accent
#6F42E6
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1012
muted
#7C7F81

Preview Lab

Preview with #2787AC

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

Preview Lab → · Contrast checker → · Palette generator →

#2787AC Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva