#2870B1#2870B1

#2870B1 is a mid, vivid cyan. Relative luminance 0.152; OKLCH L 53.3% C 0.124 H 249.5°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2870B1
RGBrgb(40, 112, 177)
HSLhsl(208, 63%, 43%)
HSVhsv(208, 77%, 69%)
CMYKcmyk(77.4%, 36.7%, 0%, 30.6%)
CIE-LABlab(45.92, 0.88, -40.82)
CIE-LCHlch(45.92, 40.83, 271.23°)
OKLaboklab(53.31% -0.0434 -0.1163)
OKLCHoklch(53.31% 0.124 249.5)
XYZxyz(14.6020, 15.2121, 43.7531)
Luminance0.1521 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870B1 #B16928
analogous
#28B1AD #2870B1 #282BB1
triadic
#2870B1 #B12870 #70B128
tetradic
#2870B1 #AD28B1 #B16928 #2BB128
square
#2870B1 #AD28B1 #B16928 #2BB128
split-complementary
#2870B1 #B1282B #B1AD28
monochromatic
#11314D #1D507F #2870B1 #428FD4 #74ACE0

Accessibility & contrast

On white

5.19
#2870B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2870B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870B1
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870B1#FFFFFF#000000##FFFFFF
##2870B11.005.194.045.19
#FFFFFF5.191.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5274B4
Deuteranopia (green-blind)
#3D67B0
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2870b1;
/* rgb */ color: rgb(40, 112, 177);
/* oklch */ color: oklch(53.3% 0.124 249.5);
Tailwind
colors: {
  custom: {
    50: '#7698c8',
    500: '#2870b1',
    950: '#000000',
  },
}
SCSS
$custom: #2870b1;
$custom-light: #7698c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2870b1",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 177
  },
  "hsl": {
    "h": 208.467,
    "s": 63.134,
    "l": 42.549
  },
  "oklch": {
    "l": 0.53314,
    "c": 0.1241,
    "h": 249.5
  },
  "luminance": 0.15214
}

Semantic roles & 50–950 ramp

primary
#2870B1
secondary
#C7986E
accent
#9042E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2870B1

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

Preview Lab → · Contrast checker → · Palette generator →

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