#2870AF#2870AF

#2870AF is a mid, vivid cyan. Relative luminance 0.151; OKLCH L 53.2% C 0.122 H 248.8°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2870AF
RGBrgb(40, 112, 175)
HSLhsl(208, 63%, 42%)
HSVhsv(208, 77%, 69%)
CMYKcmyk(77.1%, 36%, 0%, 31.4%)
CIE-LABlab(45.82, 0.13, -39.83)
CIE-LCHlch(45.82, 39.83, 270.19°)
OKLaboklab(53.2% -0.0439 -0.1133)
OKLCHoklch(53.2% 0.122 248.8)
XYZxyz(14.4042, 15.1329, 42.7109)
Luminance0.1514 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870AF #AF6728
analogous
#28AFAB #2870AF #282CAF
triadic
#2870AF #AF2870 #70AF28
tetradic
#2870AF #AB28AF #AF6728 #2CAF28
square
#2870AF #AB28AF #AF6728 #2CAF28
split-complementary
#2870AF #AF282C #AFAB28
monochromatic
#11304B #1D507D #2870AF #418FD4 #73ACDF

Accessibility & contrast

On white

5.21
#2870AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2870AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870AF
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870AF#FFFFFF#000000##FFFFFF
##2870AF1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5373B2
Deuteranopia (green-blind)
#3F67AE
Tritanopia (blue-blind)
#007F87
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2870af;
/* rgb */ color: rgb(40, 112, 175);
/* oklch */ color: oklch(53.2% 0.122 248.8);
Tailwind
colors: {
  custom: {
    50: '#7698c7',
    500: '#2870af',
    950: '#000000',
  },
}
SCSS
$custom: #2870af;
$custom-light: #7698c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2870af",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 175
  },
  "hsl": {
    "h": 208,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53195,
    "c": 0.12157,
    "h": 248.8
  },
  "luminance": 0.15135
}

Semantic roles & 50–950 ramp

primary
#2870AF
secondary
#C6966D
accent
#8E42E6
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2870AF

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

Preview Lab → · Contrast checker → · Palette generator →

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