#2870C5#2870C5

#2870C5 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.6% C 0.150 H 255.1°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2870C5
RGBrgb(40, 112, 197)
HSLhsl(212, 66%, 46%)
HSVhsv(212, 80%, 77%)
CMYKcmyk(79.7%, 43.1%, 0%, 22.7%)
CIE-LABlab(47.06, 8.46, -50.58)
CIE-LCHlch(47.06, 51.28, 279.49°)
OKLaboklab(54.58% -0.0386 -0.1449)
OKLCHoklch(54.58% 0.15 255.1)
XYZxyz(16.7435, 16.0687, 55.0316)
Luminance0.1607 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870C5 #C57D28
analogous
#28BFC5 #2870C5 #2E28C5
triadic
#2870C5 #C52870 #70C528
tetradic
#2870C5 #C528BF #C57D28 #28C52E
square
#2870C5 #C528BF #C57D28 #28C52E
split-complementary
#2870C5 #C52E28 #BFC528
monochromatic
#13365F #1E5392 #2870C5 #4F8FDB #82B0E6

Accessibility & contrast

On white

4.98
#2870C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2870C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870C5
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870C5#FFFFFF#000000##FFFFFF
##2870C51.004.984.214.98
#FFFFFF4.981.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4577C8
Deuteranopia (green-blind)
#2769C3
Tritanopia (blue-blind)
#008491
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2870c5;
/* rgb */ color: rgb(40, 112, 197);
/* oklch */ color: oklch(54.6% 0.150 255.1);
Tailwind
colors: {
  custom: {
    50: '#7a98d7',
    500: '#2870c5',
    950: '#000000',
  },
}
SCSS
$custom: #2870c5;
$custom-light: #7a98d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2870c5",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 197
  },
  "hsl": {
    "h": 212.484,
    "s": 66.245,
    "l": 46.471
  },
  "oklch": {
    "l": 0.54575,
    "c": 0.14997,
    "h": 255.1
  },
  "luminance": 0.16071
}

Semantic roles & 50–950 ramp

primary
#2870C5
secondary
#CEA87A
accent
#9B3FE9
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2870C5

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

Preview Lab → · Contrast checker → · Palette generator →

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