#2A71AC#2A71AC

#2A71AC is a mid, moderate cyan. Relative luminance 0.153; OKLCH L 53.3% C 0.116 H 247.4°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2A71AC
RGBrgb(42, 113, 172)
HSLhsl(207, 61%, 42%)
HSVhsv(207, 76%, 67%)
CMYKcmyk(75.6%, 34.3%, 0%, 32.5%)
CIE-LABlab(46.01, -1.35, -37.76)
CIE-LCHlch(46.01, 37.78, 267.95°)
OKLaboklab(53.32% -0.0446 -0.1073)
OKLCHoklch(53.32% 0.116 247.4)
XYZxyz(14.3035, 15.2794, 41.2171)
Luminance0.1528 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71AC #AC652A
analogous
#2AACA6 #2A71AC #2A30AC
triadic
#2A71AC #AC2A71 #71AC2A
tetradic
#2A71AC #A62AAC #AC652A #30AC2A
square
#2A71AC #A62AAC #AC652A #30AC2A
split-complementary
#2A71AC #AC2A30 #ACA62A
monochromatic
#12304A #1E517B #2A71AC #4290D1 #73ADDD

Accessibility & contrast

On white

5.18
#2A71AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.06
#2A71AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71AC
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71AC#FFFFFF#000000##FFFFFF
##2A71AC1.005.184.065.18
#FFFFFF5.181.0021.001.00
#0000004.0621.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5674AE
Deuteranopia (green-blind)
#4368AB
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a71ac;
/* rgb */ color: rgb(42, 113, 172);
/* oklch */ color: oklch(53.3% 0.116 247.4);
Tailwind
colors: {
  custom: {
    50: '#7699c5',
    500: '#2a71ac',
    950: '#000000',
  },
}
SCSS
$custom: #2a71ac;
$custom-light: #7699c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71ac",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 207.231,
    "s": 60.748,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53315,
    "c": 0.11616,
    "h": 247.4
  },
  "luminance": 0.15281
}

Semantic roles & 50–950 ramp

primary
#2A71AC
secondary
#C4956D
accent
#8D44E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2A71AC

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

Preview Lab → · Contrast checker → · Palette generator →

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