#2870B2#2870B2

#2870B2 is a mid, vivid cyan. Relative luminance 0.153; OKLCH L 53.4% C 0.125 H 249.9°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2870B2
RGBrgb(40, 112, 178)
HSLhsl(209, 63%, 43%)
HSVhsv(209, 78%, 70%)
CMYKcmyk(77.5%, 37.1%, 0%, 30.2%)
CIE-LABlab(45.98, 1.26, -41.32)
CIE-LCHlch(45.98, 41.34, 271.74°)
OKLaboklab(53.37% -0.0431 -0.1177)
OKLCHoklch(53.37% 0.125 249.9)
XYZxyz(14.7021, 15.2521, 44.2799)
Luminance0.1525 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870B2 #B26A28
analogous
#28B2AF #2870B2 #282BB2
triadic
#2870B2 #B22870 #70B228
tetradic
#2870B2 #AF28B2 #B26A28 #2BB228
square
#2870B2 #AF28B2 #B26A28 #2BB228
split-complementary
#2870B2 #B2282B #B2AF28
monochromatic
#12314E #1D5180 #2870B2 #438FD5 #75ADE0

Accessibility & contrast

On white

5.18
#2870B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2870B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870B2
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870B2#FFFFFF#000000##FFFFFF
##2870B21.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5174B5
Deuteranopia (green-blind)
#3C67B1
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2870b2;
/* rgb */ color: rgb(40, 112, 178);
/* oklch */ color: oklch(53.4% 0.125 249.9);
Tailwind
colors: {
  custom: {
    50: '#7698c9',
    500: '#2870b2',
    950: '#000000',
  },
}
SCSS
$custom: #2870b2;
$custom-light: #7698c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2870b2",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 178
  },
  "hsl": {
    "h": 208.696,
    "s": 63.303,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53374,
    "c": 0.12537,
    "h": 249.9
  },
  "luminance": 0.15254
}

Semantic roles & 50–950 ramp

primary
#2870B2
secondary
#C7996F
accent
#9041E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2870B2

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

Preview Lab → · Contrast checker → · Palette generator →

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