#2A71AB#2A71AB

#2A71AB is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.3% C 0.115 H 247.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2A71AB
RGBrgb(42, 113, 171)
HSLhsl(207, 61%, 42%)
HSVhsv(207, 75%, 67%)
CMYKcmyk(75.4%, 33.9%, 0%, 32.9%)
CIE-LABlab(45.96, -1.72, -37.25)
CIE-LCHlch(45.96, 37.29, 267.35°)
OKLaboklab(53.26% -0.0449 -0.1058)
OKLCHoklch(53.26% 0.115 247)
XYZxyz(14.2078, 15.2411, 40.7132)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71AB #AB642A
analogous
#2AABA5 #2A71AB #2A31AB
triadic
#2A71AB #AB2A71 #71AB2A
tetradic
#2A71AB #A52AAB #AB642A #31AB2A
square
#2A71AB #A52AAB #AB642A #31AB2A
split-complementary
#2A71AB #AB2A31 #ABA52A
monochromatic
#123049 #1E517A #2A71AB #4290D1 #73ADDD

Accessibility & contrast

On white

5.19
#2A71AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2A71AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71AB
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71AB#FFFFFF#000000##FFFFFF
##2A71AB1.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5673AD
Deuteranopia (green-blind)
#4467AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2a71ab;
/* rgb */ color: rgb(42, 113, 171);
/* oklch */ color: oklch(53.3% 0.115 247.0);
Tailwind
colors: {
  custom: {
    50: '#7699c4',
    500: '#2a71ab',
    950: '#000000',
  },
}
SCSS
$custom: #2a71ab;
$custom-light: #7699c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71ab",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 206.977,
    "s": 60.563,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53257,
    "c": 0.11492,
    "h": 247
  },
  "luminance": 0.15243
}

Semantic roles & 50–950 ramp

primary
#2A71AB
secondary
#C4946D
accent
#8C44E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2A71AB

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

Preview Lab → · Contrast checker → · Palette generator →

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