#2A71C0#2A71C0

#2A71C0 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.142 H 253.8°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2A71C0
RGBrgb(42, 113, 192)
HSLhsl(212, 64%, 46%)
HSVhsv(212, 78%, 75%)
CMYKcmyk(78.1%, 41.1%, 0%, 24.7%)
CIE-LABlab(47.11, 6.15, -47.62)
CIE-LCHlch(47.11, 48.02, 277.36°)
OKLaboklab(54.53% -0.0395 -0.1362)
OKLCHoklch(54.53% 0.142 253.8)
XYZxyz(16.3708, 16.1063, 52.1050)
Luminance0.1611 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71C0 #C0792A
analogous
#2ABCC0 #2A71C0 #2E2AC0
triadic
#2A71C0 #C02A71 #71C02A
tetradic
#2A71C0 #C02ABC #C0792A #2AC02E
square
#2A71C0 #C02ABC #C0792A #2AC02E
split-complementary
#2A71C0 #C02E2A #BCC02A
monochromatic
#14365C #1F538E #2A71C0 #4F90D8 #81B0E3

Accessibility & contrast

On white

4.97
#2A71C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2A71C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71C0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71C0#FFFFFF#000000##FFFFFF
##2A71C01.004.974.224.97
#FFFFFF4.971.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A77C3
Deuteranopia (green-blind)
#3169BE
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2a71c0;
/* rgb */ color: rgb(42, 113, 192);
/* oklch */ color: oklch(54.5% 0.142 253.8);
Tailwind
colors: {
  custom: {
    50: '#7a99d3',
    500: '#2a71c0',
    950: '#000000',
  },
}
SCSS
$custom: #2a71c0;
$custom-light: #7a99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71c0",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 192
  },
  "hsl": {
    "h": 211.6,
    "s": 64.103,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54533,
    "c": 0.14177,
    "h": 253.8
  },
  "luminance": 0.16108
}

Semantic roles & 50–950 ramp

primary
#2A71C0
secondary
#CCA57A
accent
#9841E7
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2A71C0

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

Preview Lab → · Contrast checker → · Palette generator →

#2A71C0 Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva