#2871A3#2871A3

#2871A3 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.7% C 0.106 H 242.8°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2871A3
RGBrgb(40, 113, 163)
HSLhsl(204, 61%, 40%)
HSVhsv(204, 75%, 64%)
CMYKcmyk(75.5%, 30.7%, 0%, 36.1%)
CIE-LABlab(45.50, -4.94, -33.29)
CIE-LCHlch(45.50, 33.66, 261.56°)
OKLaboklab(52.75% -0.0484 -0.0943)
OKLCHoklch(52.75% 0.106 242.8)
XYZxyz(13.3885, 14.9042, 36.8144)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871A3 #A35A28
analogous
#28A397 #2871A3 #2834A3
triadic
#2871A3 #A32871 #71A328
tetradic
#2871A3 #9728A3 #A35A28 #34A328
square
#2871A3 #9728A3 #A35A28 #34A328
split-complementary
#2871A3 #A32834 #A39728
monochromatic
#102D41 #1C4F72 #2871A3 #3A92CF #6BADDB

Accessibility & contrast

On white

5.27
#2871A3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2871A3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871A3
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871A3#FFFFFF#000000##FFFFFF
##2871A31.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A72A5
Deuteranopia (green-blind)
#4967A2
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2871a3;
/* rgb */ color: rgb(40, 113, 163);
/* oklch */ color: oklch(52.7% 0.106 242.8);
Tailwind
colors: {
  custom: {
    50: '#7399be',
    500: '#2871a3',
    950: '#000000',
  },
}
SCSS
$custom: #2871a3;
$custom-light: #7399be;
$custom-dark: #000000;
JSON
{
  "hex": "#2871a3",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 163
  },
  "hsl": {
    "h": 204.39,
    "s": 60.591,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52746,
    "c": 0.10598,
    "h": 242.8
  },
  "luminance": 0.14906
}

Semantic roles & 50–950 ramp

primary
#2871A3
secondary
#C18B66
accent
#8544E4
background
#F7F9FB
surface
#EDF2F7
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2871A3

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

Preview Lab → · Contrast checker → · Palette generator →

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