#2871BA#2871BA

#2871BA is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.135 H 251.8°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2871BA
RGBrgb(40, 113, 186)
HSLhsl(210, 65%, 44%)
HSVhsv(210, 78%, 73%)
CMYKcmyk(78.5%, 39.2%, 0%, 27.1%)
CIE-LABlab(46.72, 3.66, -44.79)
CIE-LCHlch(46.72, 44.94, 274.67°)
OKLaboklab(54.1% -0.042 -0.1279)
OKLCHoklch(54.1% 0.135 251.8)
XYZxyz(15.6398, 15.8047, 48.6712)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871BA #BA7128
analogous
#28BABA #2871BA #2828BA
triadic
#2871BA #BA2871 #71BA28
tetradic
#2871BA #BA28BA #BA7128 #28BA28
square
#2871BA #BA28BA #BA7128 #28BA28
split-complementary
#2871BA #BA2828 #BABA28
monochromatic
#123455 #1D5288 #2871BA #4890D8 #7AAEE2

Accessibility & contrast

On white

5.05
#2871BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2871BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871BA
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871BA#FFFFFF#000000##FFFFFF
##2871BA1.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BD
Deuteranopia (green-blind)
#3769B9
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2871ba;
/* rgb */ color: rgb(40, 113, 186);
/* oklch */ color: oklch(54.1% 0.135 251.8);
Tailwind
colors: {
  custom: {
    50: '#7899cf',
    500: '#2871ba',
    950: '#000000',
  },
}
SCSS
$custom: #2871ba;
$custom-light: #7899cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2871ba",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 210,
    "s": 64.602,
    "l": 44.314
  },
  "oklch": {
    "l": 0.54097,
    "c": 0.13458,
    "h": 251.8
  },
  "luminance": 0.15807
}

Semantic roles & 50–950 ramp

primary
#2871BA
secondary
#CA9F73
accent
#9440E8
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2871BA

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

Preview Lab → · Contrast checker → · Palette generator →

#2871BA Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva