#2870A4#2870A4

#2870A4 is a mid, moderate cyan. Relative luminance 0.147; OKLCH L 52.6% C 0.108 H 244.1°. Best body text is #FFFFFF at 5.32:1 contrast (WCAG AA passes).

Color values

HEX#2870A4
RGBrgb(40, 112, 164)
HSLhsl(205, 61%, 40%)
HSVhsv(205, 76%, 64%)
CMYKcmyk(75.6%, 31.7%, 0%, 35.7%)
CIE-LABlab(45.25, -3.97, -34.28)
CIE-LCHlch(45.25, 34.51, 263.39°)
OKLaboklab(52.56% -0.0471 -0.0972)
OKLCHoklch(52.56% 0.108 244.1)
XYZxyz(13.3675, 14.7182, 37.2512)
Luminance0.1472 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870A4 #A45C28
analogous
#28A49A #2870A4 #2832A4
triadic
#2870A4 #A42870 #70A428
tetradic
#2870A4 #9A28A4 #A45C28 #32A428
square
#2870A4 #9A28A4 #A45C28 #32A428
split-complementary
#2870A4 #A42832 #A49A28
monochromatic
#102D42 #1C4E73 #2870A4 #3A91CF #6BACDB

Accessibility & contrast

On white

5.32
#2870A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.94
#2870A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870A4
5.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870A4#FFFFFF#000000##FFFFFF
##2870A41.005.323.945.32
#FFFFFF5.321.0021.001.00
#0000003.9421.001.0021.00
##FFFFFF5.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5871A6
Deuteranopia (green-blind)
#4766A3
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2870a4;
/* rgb */ color: rgb(40, 112, 164);
/* oklch */ color: oklch(52.6% 0.108 244.1);
Tailwind
colors: {
  custom: {
    50: '#7498bf',
    500: '#2870a4',
    950: '#000000',
  },
}
SCSS
$custom: #2870a4;
$custom-light: #7498bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2870a4",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 164
  },
  "hsl": {
    "h": 205.161,
    "s": 60.784,
    "l": 40
  },
  "oklch": {
    "l": 0.52559,
    "c": 0.108,
    "h": 244.1
  },
  "luminance": 0.1472
}

Semantic roles & 50–950 ramp

primary
#2870A4
secondary
#C18D66
accent
#8744E4
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2870A4

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

Preview Lab → · Contrast checker → · Palette generator →

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