#2871AF#2871AF

#2871AF is a mid, vivid cyan. Relative luminance 0.154; OKLCH L 53.4% C 0.121 H 248.2°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2871AF
RGBrgb(40, 113, 175)
HSLhsl(208, 63%, 42%)
HSVhsv(208, 77%, 69%)
CMYKcmyk(77.1%, 35.4%, 0%, 31.4%)
CIE-LABlab(46.12, -0.49, -39.35)
CIE-LCHlch(46.12, 39.35, 269.29°)
OKLaboklab(53.43% -0.0448 -0.1119)
OKLCHoklch(53.43% 0.121 248.2)
XYZxyz(14.5151, 15.3548, 42.7479)
Luminance0.1536 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871AF #AF6628
analogous
#28AFAA #2871AF #282DAF
triadic
#2871AF #AF2871 #71AF28
tetradic
#2871AF #AA28AF #AF6628 #2DAF28
square
#2871AF #AA28AF #AF6628 #2DAF28
split-complementary
#2871AF #AF282D #AFAA28
monochromatic
#11314B #1D517D #2871AF #4190D4 #73ADDF

Accessibility & contrast

On white

5.16
#2871AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2871AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871AF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871AF#FFFFFF#000000##FFFFFF
##2871AF1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5474B2
Deuteranopia (green-blind)
#4168AE
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2871af;
/* rgb */ color: rgb(40, 113, 175);
/* oklch */ color: oklch(53.4% 0.121 248.2);
Tailwind
colors: {
  custom: {
    50: '#7699c7',
    500: '#2871af',
    950: '#000000',
  },
}
SCSS
$custom: #2871af;
$custom-light: #7699c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2871af",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 207.556,
    "s": 62.791,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53431,
    "c": 0.12059,
    "h": 248.2
  },
  "luminance": 0.15357
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2871AF

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

Preview Lab → · Contrast checker → · Palette generator →

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