#2870B0#2870B0

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

Color values

HEX#2870B0
RGBrgb(40, 112, 176)
HSLhsl(208, 63%, 42%)
HSVhsv(208, 77%, 69%)
CMYKcmyk(77.3%, 36.4%, 0%, 31%)
CIE-LABlab(45.87, 0.50, -40.32)
CIE-LCHlch(45.87, 40.33, 270.72°)
OKLaboklab(53.25% -0.0436 -0.1148)
OKLCHoklch(53.25% 0.123 249.2)
XYZxyz(14.5027, 15.1723, 43.2301)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870B0 #B06828
analogous
#28B0AC #2870B0 #282CB0
triadic
#2870B0 #B02870 #70B028
tetradic
#2870B0 #AC28B0 #B06828 #2CB028
square
#2870B0 #AC28B0 #B06828 #2CB028
split-complementary
#2870B0 #B0282C #B0AC28
monochromatic
#11314C #1D507E #2870B0 #418FD4 #73ACDF

Accessibility & contrast

On white

5.20
#2870B0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2870B0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870B0
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870B0#FFFFFF#000000##FFFFFF
##2870B01.005.204.035.20
#FFFFFF5.201.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5273B3
Deuteranopia (green-blind)
#3E67AF
Tritanopia (blue-blind)
#007F87
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2870b0;
/* rgb */ color: rgb(40, 112, 176);
/* oklch */ color: oklch(53.3% 0.123 249.2);
Tailwind
colors: {
  custom: {
    50: '#7698c8',
    500: '#2870b0',
    950: '#000000',
  },
}
SCSS
$custom: #2870b0;
$custom-light: #7698c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2870b0",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 176
  },
  "hsl": {
    "h": 208.235,
    "s": 62.963,
    "l": 42.353
  },
  "oklch": {
    "l": 0.53254,
    "c": 0.12283,
    "h": 249.2
  },
  "luminance": 0.15174
}

Semantic roles & 50–950 ramp

primary
#2870B0
secondary
#C6976D
accent
#8F42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2870B0

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

Preview Lab → · Contrast checker → · Palette generator →

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