#2A71B2#2A71B2

#2A71B2 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.7% C 0.124 H 249.7°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2A71B2
RGBrgb(42, 113, 178)
HSLhsl(209, 62%, 43%)
HSVhsv(209, 76%, 70%)
CMYKcmyk(76.4%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.33, 0.88, -40.75)
CIE-LCHlch(46.33, 40.76, 271.24°)
OKLaboklab(53.67% -0.0429 -0.116)
OKLCHoklch(53.67% 0.124 249.7)
XYZxyz(14.8928, 15.5151, 44.3207)
Luminance0.1552 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71B2 #B26B2A
analogous
#2AB2AF #2A71B2 #2A2DB2
triadic
#2A71B2 #B22A71 #71B22A
tetradic
#2A71B2 #AF2AB2 #B26B2A #2DB22A
square
#2A71B2 #AF2AB2 #B26B2A #2DB22A
split-complementary
#2A71B2 #B22A2D #B2AF2A
monochromatic
#13324F #1E5280 #2A71B2 #4690D3 #77ADDF

Accessibility & contrast

On white

5.12
#2A71B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2A71B2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71B2
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71B2#FFFFFF#000000##FFFFFF
##2A71B21.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#3F68B1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2a71b2;
/* rgb */ color: rgb(42, 113, 178);
/* oklch */ color: oklch(53.7% 0.124 249.7);
Tailwind
colors: {
  custom: {
    50: '#7799c9',
    500: '#2a71b2',
    950: '#000000',
  },
}
SCSS
$custom: #2a71b2;
$custom-light: #7799c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71b2",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 208.676,
    "s": 61.818,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53668,
    "c": 0.12371,
    "h": 249.7
  },
  "luminance": 0.15517
}

Semantic roles & 50–950 ramp

primary
#2A71B2
secondary
#C79A71
accent
#9043E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2A71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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