#2787B2#2787B2

#2787B2 is a mid, moderate cyan. Relative luminance 0.210; OKLCH L 58.9% C 0.108 H 232.7°. Best body text is #000000 at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2787B2
RGBrgb(39, 135, 178)
HSLhsl(199, 64%, 43%)
HSVhsv(199, 78%, 70%)
CMYKcmyk(78.1%, 24.2%, 0%, 30.2%)
CIE-LABlab(52.92, -12.43, -30.41)
CIE-LCHlch(52.92, 32.85, 247.76°)
OKLaboklab(58.86% -0.0652 -0.0857)
OKLCHoklch(58.86% 0.108 232.7)
XYZxyz(17.5333, 20.9715, 45.2347)
Luminance0.2097 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2787B2 #B25227
analogous
#27B297 #2787B2 #2742B2
triadic
#2787B2 #B22787 #87B227
tetradic
#2787B2 #9727B2 #B25227 #42B227
square
#2787B2 #9727B2 #B25227 #42B227
split-complementary
#2787B2 #B22742 #B29727
monochromatic
#113B4E #1C6180 #2787B2 #41A7D5 #73BFE0

Accessibility & contrast

On white

4.04
#2787B2 on #FFFFFF
AA ✗AA large ✓AAA ✗

On black

5.19
#2787B2 on #000000
AA ✓AA large ✓AAA ✗

Best text color

#000000 on #2787B2
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2787B2#FFFFFF#000000##000000
##2787B21.004.045.195.19
#FFFFFF4.041.0021.0021.00
#0000005.1921.001.001.00
##0000005.1921.001.001.00

Color blindness preview

Protanopia (red-blind)
#7286B4
Deuteranopia (green-blind)
#5F79B1
Tritanopia (blue-blind)
#009396
Achromatopsia (no color)
#7E7E7E

Design tokens & code

CSS
--color: #2787b2;
/* rgb */ color: rgb(39, 135, 178);
/* oklch */ color: oklch(58.9% 0.108 232.7);
Tailwind
colors: {
  custom: {
    50: '#77aac9',
    500: '#2787b2',
    950: '#000000',
  },
}
SCSS
$custom: #2787b2;
$custom-light: #77aac9;
$custom-dark: #000000;
JSON
{
  "hex": "#2787b2",
  "rgb": {
    "r": 39,
    "g": 135,
    "b": 178
  },
  "hsl": {
    "h": 198.561,
    "s": 64.055,
    "l": 42.549
  },
  "oklch": {
    "l": 0.5886,
    "c": 0.10769,
    "h": 232.7
  },
  "luminance": 0.20974
}

Semantic roles & 50–950 ramp

primary
#2787B2
secondary
#C8896D
accent
#7441E7
background
#F7FAFC
surface
#EEF4F8
border
#C9CED1
text
#0A1013
muted
#7C7F82

Preview Lab

Preview with #2787B2

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

Preview Lab → · Contrast checker → · Palette generator →

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