#2870BD#2870BD

#2870BD is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.1% C 0.140 H 253.2°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2870BD
RGBrgb(40, 112, 189)
HSLhsl(211, 65%, 45%)
HSVhsv(211, 79%, 74%)
CMYKcmyk(78.8%, 40.7%, 0%, 25.9%)
CIE-LABlab(46.59, 5.42, -46.72)
CIE-LCHlch(46.59, 47.03, 276.61°)
OKLaboklab(54.06% -0.0404 -0.1336)
OKLCHoklch(54.06% 0.14 253.2)
XYZxyz(15.8511, 15.7117, 50.3315)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870BD #BD7528
analogous
#28BABD #2870BD #2B28BD
triadic
#2870BD #BD2870 #70BD28
tetradic
#2870BD #BD28BA #BD7528 #28BD2B
square
#2870BD #BD28BA #BD7528 #28BD2B
split-complementary
#2870BD #BD2B28 #BABD28
monochromatic
#133458 #1D528A #2870BD #4A8FD9 #7CAEE3

Accessibility & contrast

On white

5.07
#2870BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2870BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870BD
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870BD#FFFFFF#000000##FFFFFF
##2870BD1.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B76C0
Deuteranopia (green-blind)
#3168BB
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2870bd;
/* rgb */ color: rgb(40, 112, 189);
/* oklch */ color: oklch(54.1% 0.140 253.2);
Tailwind
colors: {
  custom: {
    50: '#7998d1',
    500: '#2870bd',
    950: '#000000',
  },
}
SCSS
$custom: #2870bd;
$custom-light: #7998d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2870bd",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 189
  },
  "hsl": {
    "h": 211.007,
    "s": 65.066,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54057,
    "c": 0.13953,
    "h": 253.2
  },
  "luminance": 0.15714
}

Semantic roles & 50–950 ramp

primary
#2870BD
secondary
#CBA275
accent
#9740E8
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2870BD

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

Preview Lab → · Contrast checker → · Palette generator →

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