#2870CC#2870CC

#2870CC is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 55.0% C 0.159 H 256.5°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2870CC
RGBrgb(40, 112, 204)
HSLhsl(214, 67%, 48%)
HSVhsv(214, 80%, 80%)
CMYKcmyk(80.4%, 45.1%, 0%, 20%)
CIE-LABlab(47.49, 11.13, -53.91)
CIE-LCHlch(47.49, 55.05, 281.66°)
OKLaboklab(55.04% -0.0373 -0.1547)
OKLCHoklch(55.04% 0.159 256.5)
XYZxyz(17.5643, 16.3970, 59.3542)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870CC #CC8428
analogous
#28C2CC #2870CC #3228CC
triadic
#2870CC #CC2870 #70CC28
tetradic
#2870CC #CC28C2 #CC8428 #28CC32
square
#2870CC #CC28C2 #CC8428 #28CC32
split-complementary
#2870CC #CC3228 #C2CC28
monochromatic
#143866 #1E5499 #2870CC #5490DD #87B1E7

Accessibility & contrast

On white

4.91
#2870CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2870CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870CC
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870CC#FFFFFF#000000##FFFFFF
##2870CC1.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F79CF
Deuteranopia (green-blind)
#196ACA
Tritanopia (blue-blind)
#008694
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2870cc;
/* rgb */ color: rgb(40, 112, 204);
/* oklch */ color: oklch(55.0% 0.159 256.5);
Tailwind
colors: {
  custom: {
    50: '#7c98dc',
    500: '#2870cc',
    950: '#000000',
  },
}
SCSS
$custom: #2870cc;
$custom-light: #7c98dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2870cc",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 204
  },
  "hsl": {
    "h": 213.659,
    "s": 67.213,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55043,
    "c": 0.15913,
    "h": 256.5
  },
  "luminance": 0.16399
}

Semantic roles & 50–950 ramp

primary
#2870CC
secondary
#D1AD7F
accent
#9E3EEA
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2870CC

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

Preview Lab → · Contrast checker → · Palette generator →

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