#2871CD#2871CD

#2871CD is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.3% C 0.159 H 256.2°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#2871CD
RGBrgb(40, 113, 205)
HSLhsl(213, 67%, 48%)
HSVhsv(213, 80%, 80%)
CMYKcmyk(80.5%, 44.9%, 0%, 19.6%)
CIE-LABlab(47.84, 10.88, -53.93)
CIE-LCHlch(47.84, 55.01, 281.41°)
OKLaboklab(55.33% -0.0379 -0.1547)
OKLCHoklch(55.33% 0.159 256.2)
XYZxyz(17.7956, 16.6670, 60.0249)
Luminance0.1667 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871CD #CD8428
analogous
#28C3CD #2871CD #3228CD
triadic
#2871CD #CD2871 #71CD28
tetradic
#2871CD #CD28C3 #CD8428 #28CD32
square
#2871CD #CD28C3 #CD8428 #28CD32
split-complementary
#2871CD #CD3228 #C3CD28
monochromatic
#143967 #1E559A #2871CD #5491DE #88B2E8

Accessibility & contrast

On white

4.85
#2871CD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#2871CD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2871CD
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2871CD#FFFFFF#000000##FFFFFF
##2871CD1.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4079D1
Deuteranopia (green-blind)
#1B6BCB
Tritanopia (blue-blind)
#008795
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2871cd;
/* rgb */ color: rgb(40, 113, 205);
/* oklch */ color: oklch(55.3% 0.159 256.2);
Tailwind
colors: {
  custom: {
    50: '#7c99dd',
    500: '#2871cd',
    950: '#000000',
  },
}
SCSS
$custom: #2871cd;
$custom-light: #7c99dd;
$custom-dark: #000000;
JSON
{
  "hex": "#2871cd",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 205
  },
  "hsl": {
    "h": 213.455,
    "s": 67.347,
    "l": 48.039
  },
  "oklch": {
    "l": 0.55331,
    "c": 0.1593,
    "h": 256.2
  },
  "luminance": 0.16669
}

Semantic roles & 50–950 ramp

primary
#2871CD
secondary
#D1AD80
accent
#9E3EEA
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2871CD

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

Preview Lab → · Contrast checker → · Palette generator →

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