#2871AA#2871AA

#2871AA is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.1% C 0.114 H 246.1°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2871AA
RGBrgb(40, 113, 170)
HSLhsl(206, 62%, 41%)
HSVhsv(206, 76%, 67%)
CMYKcmyk(76.5%, 33.5%, 0%, 33.3%)
CIE-LABlab(45.86, -2.35, -36.84)
CIE-LCHlch(45.86, 36.92, 266.35°)
OKLaboklab(53.14% -0.0463 -0.1046)
OKLCHoklch(53.14% 0.114 246.1)
XYZxyz(14.0331, 15.1620, 40.2094)
Luminance0.1516 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2871AA #AA6128
analogous
#28AAA2 #2871AA #2830AA
triadic
#2871AA #AA2871 #71AA28
tetradic
#2871AA #A228AA #AA6128 #30AA28
square
#2871AA #A228AA #AA6128 #30AA28
split-complementary
#2871AA #AA2830 #AAA228
monochromatic
#112F47 #1C5078 #2871AA #3E91D2 #6FADDD

Accessibility & contrast

On white

5.21
#2871AA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2871AA on #000000
AA ✗AA large ✓AAA ✗

Best text color

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

Contrast matrix

fg \ bg##2871AA#FFFFFF#000000##FFFFFF
##2871AA1.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5773AC
Deuteranopia (green-blind)
#4467A9
Tritanopia (blue-blind)
#007F85
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2871aa;
/* rgb */ color: rgb(40, 113, 170);
/* oklch */ color: oklch(53.1% 0.114 246.1);
Tailwind
colors: {
  custom: {
    50: '#7599c3',
    500: '#2871aa',
    950: '#000000',
  },
}
SCSS
$custom: #2871aa;
$custom-light: #7599c3;
$custom-dark: #000000;
JSON
{
  "hex": "#2871aa",
  "rgb": {
    "r": 40,
    "g": 113,
    "b": 170
  },
  "hsl": {
    "h": 206.308,
    "s": 61.905,
    "l": 41.176
  },
  "oklch": {
    "l": 0.5314,
    "c": 0.11439,
    "h": 246.1
  },
  "luminance": 0.15164
}

Semantic roles & 50–950 ramp

primary
#2871AA
secondary
#C4916A
accent
#8A43E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2871AA

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

Preview Lab → · Contrast checker → · Palette generator →

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