#2A71A8#2A71A8

#2A71A8 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.1% C 0.111 H 245.7°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2A71A8
RGBrgb(42, 113, 168)
HSLhsl(206, 60%, 41%)
HSVhsv(206, 75%, 66%)
CMYKcmyk(75%, 32.7%, 0%, 34.1%)
CIE-LABlab(45.81, -2.83, -35.74)
CIE-LCHlch(45.81, 35.85, 265.47°)
OKLaboklab(53.09% -0.0458 -0.1014)
OKLCHoklch(53.09% 0.111 245.7)
XYZxyz(13.9251, 15.1280, 39.2243)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71A8 #A8612A
analogous
#2AA8A0 #2A71A8 #2A32A8
triadic
#2A71A8 #A82A71 #71A82A
tetradic
#2A71A8 #A02AA8 #A8612A #32A82A
square
#2A71A8 #A02AA8 #A8612A #32A82A
split-complementary
#2A71A8 #A82A32 #A8A02A
monochromatic
#122F46 #1E5077 #2A71A8 #4091CF #71ADDB

Accessibility & contrast

On white

5.22
#2A71A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2A71A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71A8
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71A8#FFFFFF#000000##FFFFFF
##2A71A81.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5873AA
Deuteranopia (green-blind)
#4667A7
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a71a8;
/* rgb */ color: rgb(42, 113, 168);
/* oklch */ color: oklch(53.1% 0.111 245.7);
Tailwind
colors: {
  custom: {
    50: '#7599c2',
    500: '#2a71a8',
    950: '#000000',
  },
}
SCSS
$custom: #2a71a8;
$custom-light: #7599c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71a8",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 206.19,
    "s": 60,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53086,
    "c": 0.11123,
    "h": 245.7
  },
  "luminance": 0.1513
}

Semantic roles & 50–950 ramp

primary
#2A71A8
secondary
#C3916B
accent
#8A45E3
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2A71A8

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

Preview Lab → · Contrast checker → · Palette generator →

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