#2871AB#2871AB

#2871AB is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.2% C 0.116 H 246.6°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2871AB
RGBrgb(40, 113, 171)
HSLhsl(207, 62%, 41%)
HSVhsv(207, 77%, 67%)
CMYKcmyk(76.6%, 33.9%, 0%, 32.9%)
CIE-LABlab(45.91, -1.98, -37.35)
CIE-LCHlch(45.91, 37.40, 266.97°)
OKLaboklab(53.2% -0.046 -0.1061)
OKLCHoklch(53.2% 0.116 246.6)
XYZxyz(14.1281, 15.2000, 40.7095)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871AB #AB6228
analogous
#28ABA4 #2871AB #2830AB
triadic
#2871AB #AB2871 #71AB28
tetradic
#2871AB #A428AB #AB6228 #30AB28
square
#2871AB #A428AB #AB6228 #30AB28
split-complementary
#2871AB #AB2830 #ABA428
monochromatic
#112F48 #1C5079 #2871AB #3E91D2 #70ADDE

Accessibility & contrast

On white

5.20
#2871AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2871AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871AB
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871AB#FFFFFF#000000##FFFFFF
##2871AB1.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5673AD
Deuteranopia (green-blind)
#4467AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2871ab;
/* rgb */ color: rgb(40, 113, 171);
/* oklch */ color: oklch(53.2% 0.116 246.6);
Tailwind
colors: {
  custom: {
    50: '#7599c4',
    500: '#2871ab',
    950: '#000000',
  },
}
SCSS
$custom: #2871ab;
$custom-light: #7599c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2871ab",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 206.565,
    "s": 62.085,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53198,
    "c": 0.11562,
    "h": 246.6
  },
  "luminance": 0.15202
}

Semantic roles & 50–950 ramp

primary
#2871AB
secondary
#C4926A
accent
#8B43E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2871AB

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

Preview Lab → · Contrast checker → · Palette generator →

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