#2870A2#2870A2

#2870A2 is a mid, moderate cyan. Relative luminance 0.146; OKLCH L 52.4% C 0.106 H 243.1°. Best body text is #FFFFFF at 5.34:1 contrast (WCAG AA passes).

Color values

HEX#2870A2
RGBrgb(40, 112, 162)
HSLhsl(205, 60%, 40%)
HSVhsv(205, 75%, 64%)
CMYKcmyk(75.3%, 30.9%, 0%, 36.5%)
CIE-LABlab(45.15, -4.71, -33.26)
CIE-LCHlch(45.15, 33.60, 261.94°)
OKLaboklab(52.45% -0.0478 -0.0942)
OKLCHoklch(52.45% 0.106 243.1)
XYZxyz(13.1883, 14.6466, 36.3074)
Luminance0.1465 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2870A2 #A25A28
analogous
#28A297 #2870A2 #2833A2
triadic
#2870A2 #A22870 #70A228
tetradic
#2870A2 #9728A2 #A25A28 #33A228
square
#2870A2 #9728A2 #A25A28 #33A228
split-complementary
#2870A2 #A22833 #A29728
monochromatic
#102C40 #1C4E71 #2870A2 #3991CE #6AACDA

Accessibility & contrast

On white

5.34
#2870A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.93
#2870A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2870A2
5.34:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2870A2#FFFFFF#000000##FFFFFF
##2870A21.005.343.935.34
#FFFFFF5.341.0021.001.00
#0000003.9321.001.0021.00
##FFFFFF5.341.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5971A4
Deuteranopia (green-blind)
#4866A1
Tritanopia (blue-blind)
#007C82
Achromatopsia (no color)
#6B6B6B

Design tokens & code

CSS
--color: #2870a2;
/* rgb */ color: rgb(40, 112, 162);
/* oklch */ color: oklch(52.4% 0.106 243.1);
Tailwind
colors: {
  custom: {
    50: '#7398be',
    500: '#2870a2',
    950: '#000000',
  },
}
SCSS
$custom: #2870a2;
$custom-light: #7398be;
$custom-dark: #000000;
JSON
{
  "hex": "#2870a2",
  "rgb": {
    "r": 40,
    "g": 112,
    "b": 162
  },
  "hsl": {
    "h": 204.59,
    "s": 60.396,
    "l": 39.608
  },
  "oklch": {
    "l": 0.52448,
    "c": 0.10562,
    "h": 243.1
  },
  "luminance": 0.14648
}

Semantic roles & 50–950 ramp

primary
#2870A2
secondary
#C18B65
accent
#8644E4
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2870A2

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

Preview Lab → · Contrast checker → · Palette generator →

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