#2870A5#2870A5

#2870A5 is a mid, moderate cyan. Relative luminance 0.148; OKLCH L 52.6% C 0.109 H 244.6°. Best body text is #FFFFFF at 5.31:1 contrast (WCAG AA passes).

Color values

HEX#2870A5
RGBrgb(40, 112, 165)
HSLhsl(205, 61%, 40%)
HSVhsv(205, 76%, 65%)
CMYKcmyk(75.8%, 32.1%, 0%, 35.3%)
CIE-LABlab(45.30, -3.60, -34.79)
CIE-LCHlch(45.30, 34.98, 264.09°)
OKLaboklab(52.62% -0.0468 -0.0986)
OKLCHoklch(52.62% 0.109 244.6)
XYZxyz(13.4582, 14.7545, 37.7286)
Luminance0.1476 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870A5 #A55D28
analogous
#28A59C #2870A5 #2831A5
triadic
#2870A5 #A52870 #70A528
tetradic
#2870A5 #9C28A5 #A55D28 #31A528
square
#2870A5 #9C28A5 #A55D28 #31A528
split-complementary
#2870A5 #A52831 #A59C28
monochromatic
#102D42 #1C4F74 #2870A5 #3B90CF #6CACDB

Accessibility & contrast

On white

5.31
#2870A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.95
#2870A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870A5
5.31:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870A5#FFFFFF#000000##FFFFFF
##2870A51.005.313.955.31
#FFFFFF5.311.0021.001.00
#0000003.9521.001.0021.00
##FFFFFF5.311.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5872A7
Deuteranopia (green-blind)
#4666A4
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2870a5;
/* rgb */ color: rgb(40, 112, 165);
/* oklch */ color: oklch(52.6% 0.109 244.6);
Tailwind
colors: {
  custom: {
    50: '#7498c0',
    500: '#2870a5',
    950: '#000000',
  },
}
SCSS
$custom: #2870a5;
$custom-light: #7498c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2870a5",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 165
  },
  "hsl": {
    "h": 205.44,
    "s": 60.976,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52616,
    "c": 0.1092,
    "h": 244.6
  },
  "luminance": 0.14756
}

Semantic roles & 50–950 ramp

primary
#2870A5
secondary
#C28D67
accent
#8844E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2870A5

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

Preview Lab → · Contrast checker → · Palette generator →

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