#2870A0#2870A0

#2870A0 is a mid, moderate cyan. Relative luminance 0.146; OKLCH L 52.3% C 0.103 H 242.0°. Best body text is #FFFFFF at 5.36:1 contrast (WCAG AA passes).

Color values

HEX#2870A0
RGBrgb(40, 112, 160)
HSLhsl(204, 60%, 39%)
HSVhsv(204, 75%, 63%)
CMYKcmyk(75%, 30%, 0%, 37.3%)
CIE-LABlab(45.05, -5.44, -32.24)
CIE-LCHlch(45.05, 32.70, 260.42°)
OKLaboklab(52.34% -0.0484 -0.0912)
OKLCHoklch(52.34% 0.103 242)
XYZxyz(13.0119, 14.5760, 35.3786)
Luminance0.1458 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870A0 #A05828
analogous
#28A094 #2870A0 #2834A0
triadic
#2870A0 #A02870 #70A028
tetradic
#2870A0 #9428A0 #A05828 #34A028
square
#2870A0 #9428A0 #A05828 #34A028
split-complementary
#2870A0 #A02834 #A09428
monochromatic
#102B3E #1C4E6F #2870A0 #3892CD #69ACD9

Accessibility & contrast

On white

5.36
#2870A0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.92
#2870A0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870A0
5.36:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870A0#FFFFFF#000000##FFFFFF
##2870A01.005.363.925.36
#FFFFFF5.361.0021.001.00
#0000003.9221.001.0021.00
##FFFFFF5.361.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A71A2
Deuteranopia (green-blind)
#49669F
Tritanopia (blue-blind)
#007C81
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2870a0;
/* rgb */ color: rgb(40, 112, 160);
/* oklch */ color: oklch(52.3% 0.103 242.0);
Tailwind
colors: {
  custom: {
    50: '#7398bc',
    500: '#2870a0',
    950: '#000000',
  },
}
SCSS
$custom: #2870a0;
$custom-light: #7398bc;
$custom-dark: #000000;
JSON
{
  "hex": "#2870a0",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 160
  },
  "hsl": {
    "h": 204,
    "s": 60,
    "l": 39.216
  },
  "oklch": {
    "l": 0.52338,
    "c": 0.10327,
    "h": 242
  },
  "luminance": 0.14578
}

Semantic roles & 50–950 ramp

primary
#2870A0
secondary
#C08964
accent
#8445E3
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2870A0

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

Preview Lab → · Contrast checker → · Palette generator →

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