#2870A8#2870A8

#2870A8 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.113 H 246.0°. Best body text is #FFFFFF at 5.29:1 contrast (WCAG AA passes).

Color values

HEX#2870A8
RGBrgb(40, 112, 168)
HSLhsl(206, 62%, 41%)
HSVhsv(206, 76%, 66%)
CMYKcmyk(76.2%, 33.3%, 0%, 34.1%)
CIE-LABlab(45.45, -2.49, -36.31)
CIE-LCHlch(45.45, 36.40, 266.08°)
OKLaboklab(52.79% -0.0459 -0.1031)
OKLCHoklch(52.79% 0.113 246)
XYZxyz(13.7344, 14.8650, 39.1836)
Luminance0.1487 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870A8 #A86028
analogous
#28A8A0 #2870A8 #2830A8
triadic
#2870A8 #A82870 #70A828
tetradic
#2870A8 #A028A8 #A86028 #30A828
square
#2870A8 #A028A8 #A86028 #30A828
split-complementary
#2870A8 #A82830 #A8A028
monochromatic
#102E45 #1C4F77 #2870A8 #3D90D1 #6EACDC

Accessibility & contrast

On white

5.29
#2870A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.97
#2870A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870A8
5.29:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870A8#FFFFFF#000000##FFFFFF
##2870A81.005.293.975.29
#FFFFFF5.291.0021.001.00
#0000003.9721.001.0021.00
##FFFFFF5.291.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5672AA
Deuteranopia (green-blind)
#4466A7
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2870a8;
/* rgb */ color: rgb(40, 112, 168);
/* oklch */ color: oklch(52.8% 0.113 246.0);
Tailwind
colors: {
  custom: {
    50: '#7498c2',
    500: '#2870a8',
    950: '#000000',
  },
}
SCSS
$custom: #2870a8;
$custom-light: #7498c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2870a8",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 168
  },
  "hsl": {
    "h": 206.25,
    "s": 61.538,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52786,
    "c": 0.11285,
    "h": 246
  },
  "luminance": 0.14867
}

Semantic roles & 50–950 ramp

primary
#2870A8
secondary
#C39069
accent
#8A43E5
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2870A8

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

Preview Lab → · Contrast checker → · Palette generator →

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