#2870AB#2870AB

#2870AB is a mid, moderate cyan. Relative luminance 0.150; OKLCH L 53.0% C 0.117 H 247.3°. Best body text is #FFFFFF at 5.26:1 contrast (WCAG AA passes).

Color values

HEX#2870AB
RGBrgb(40, 112, 171)
HSLhsl(207, 62%, 41%)
HSVhsv(207, 77%, 67%)
CMYKcmyk(76.6%, 34.5%, 0%, 32.9%)
CIE-LABlab(45.60, -1.37, -37.82)
CIE-LCHlch(45.60, 37.85, 267.93°)
OKLaboklab(52.96% -0.045 -0.1075)
OKLCHoklch(52.96% 0.117 247.3)
XYZxyz(14.0171, 14.9781, 40.6725)
Luminance0.1498 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870AB #AB6328
analogous
#28ABA5 #2870AB #282FAB
triadic
#2870AB #AB2870 #70AB28
tetradic
#2870AB #A528AB #AB6328 #2FAB28
square
#2870AB #A528AB #AB6328 #2FAB28
split-complementary
#2870AB #AB282F #ABA528
monochromatic
#112F48 #1C5079 #2870AB #3E8FD2 #70ACDE

Accessibility & contrast

On white

5.26
#2870AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2870AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870AB
5.26:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870AB#FFFFFF#000000##FFFFFF
##2870AB1.005.264.005.26
#FFFFFF5.261.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.261.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5573AD
Deuteranopia (green-blind)
#4266AA
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2870ab;
/* rgb */ color: rgb(40, 112, 171);
/* oklch */ color: oklch(53.0% 0.117 247.3);
Tailwind
colors: {
  custom: {
    50: '#7598c4',
    500: '#2870ab',
    950: '#000000',
  },
}
SCSS
$custom: #2870ab;
$custom-light: #7598c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2870ab",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 171
  },
  "hsl": {
    "h": 207.023,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.52959,
    "c": 0.11655,
    "h": 247.3
  },
  "luminance": 0.1498
}

Semantic roles & 50–950 ramp

primary
#2870AB
secondary
#C4936A
accent
#8C43E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2870AB

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

Preview Lab → · Contrast checker → · Palette generator →

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