#2870AC#2870AC

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

Color values

HEX#2870AC
RGBrgb(40, 112, 172)
HSLhsl(207, 62%, 42%)
HSVhsv(207, 77%, 67%)
CMYKcmyk(76.7%, 34.9%, 0%, 32.5%)
CIE-LABlab(45.66, -1.00, -38.33)
CIE-LCHlch(45.66, 38.34, 268.51°)
OKLaboklab(53.02% -0.0448 -0.109)
OKLCHoklch(53.02% 0.118 247.7)
XYZxyz(14.1128, 15.0164, 41.1764)
Luminance0.1502 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870AC #AC6428
analogous
#28ACA6 #2870AC #282EAC
triadic
#2870AC #AC2870 #70AC28
tetradic
#2870AC #A628AC #AC6428 #2EAC28
square
#2870AC #A628AC #AC6428 #2EAC28
split-complementary
#2870AC #AC282E #ACA628
monochromatic
#112F49 #1C507A #2870AC #3F8FD2 #71ACDE

Accessibility & contrast

On white

5.25
#2870AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2870AC
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870AC#FFFFFF#000000##FFFFFF
##2870AC1.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5473AF
Deuteranopia (green-blind)
#4167AB
Tritanopia (blue-blind)
#007E86
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2870ac;
/* rgb */ color: rgb(40, 112, 172);
/* oklch */ color: oklch(53.0% 0.118 247.7);
Tailwind
colors: {
  custom: {
    50: '#7598c5',
    500: '#2870ac',
    950: '#000000',
  },
}
SCSS
$custom: #2870ac;
$custom-light: #7598c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2870ac",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 172
  },
  "hsl": {
    "h": 207.273,
    "s": 62.264,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53018,
    "c": 0.1178,
    "h": 247.7
  },
  "luminance": 0.15018
}

Semantic roles & 50–950 ramp

primary
#2870AC
secondary
#C5946B
accent
#8C42E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2870AC

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

Preview Lab → · Contrast checker → · Palette generator →

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