#2A71A1#2A71A1

#2A71A1 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.7% C 0.103 H 242.2°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2A71A1
RGBrgb(42, 113, 161)
HSLhsl(204, 59%, 40%)
HSVhsv(204, 74%, 63%)
CMYKcmyk(73.9%, 29.8%, 0%, 36.9%)
CIE-LABlab(45.46, -5.40, -32.18)
CIE-LCHlch(45.46, 32.63, 260.47°)
OKLaboklab(52.7% -0.048 -0.091)
OKLCHoklch(52.7% 0.103 242.2)
XYZxyz(13.2905, 14.8742, 35.8819)
Luminance0.1488 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71A1 #A15A2A
analogous
#2AA196 #2A71A1 #2A35A1
triadic
#2A71A1 #A12A71 #71A12A
tetradic
#2A71A1 #962AA1 #A15A2A #35A12A
square
#2A71A1 #962AA1 #A15A2A #35A12A
split-complementary
#2A71A1 #A12A35 #A1962A
monochromatic
#112D40 #1D4F70 #2A71A1 #3C92CC #6DADD9

Accessibility & contrast

On white

5.28
#2A71A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2A71A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2A71A1
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71A1#FFFFFF#000000##FFFFFF
##2A71A11.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A3
Deuteranopia (green-blind)
#4A67A0
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2a71a1;
/* rgb */ color: rgb(42, 113, 161);
/* oklch */ color: oklch(52.7% 0.103 242.2);
Tailwind
colors: {
  custom: {
    50: '#7499bd',
    500: '#2a71a1',
    950: '#000000',
  },
}
SCSS
$custom: #2a71a1;
$custom-light: #7499bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71a1",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 161
  },
  "hsl": {
    "h": 204.202,
    "s": 58.621,
    "l": 39.804
  },
  "oklch": {
    "l": 0.52697,
    "c": 0.10287,
    "h": 242.2
  },
  "luminance": 0.14876
}

Semantic roles & 50–950 ramp

primary
#2A71A1
secondary
#C08B67
accent
#8546E2
background
#F7F9FB
surface
#EDF2F6
border
#C8CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2A71A1

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

Preview Lab → · Contrast checker → · Palette generator →

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