#2A71A2#2A71A2

#2A71A2 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.104 H 242.7°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2A71A2
RGBrgb(42, 113, 162)
HSLhsl(205, 59%, 40%)
HSVhsv(205, 74%, 64%)
CMYKcmyk(74.1%, 30.2%, 0%, 36.5%)
CIE-LABlab(45.51, -5.04, -32.69)
CIE-LCHlch(45.51, 33.07, 261.24°)
OKLaboklab(52.75% -0.0476 -0.0925)
OKLCHoklch(52.75% 0.104 242.7)
XYZxyz(13.3790, 14.9096, 36.3481)
Luminance0.1491 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2A71A2 #A25B2A
analogous
#2AA297 #2A71A2 #2A35A2
triadic
#2A71A2 #A22A71 #71A22A
tetradic
#2A71A2 #972AA2 #A25B2A #35A22A
square
#2A71A2 #972AA2 #A25B2A #35A22A
split-complementary
#2A71A2 #A22A35 #A2972A
monochromatic
#112D41 #1D4F71 #2A71A2 #3D92CD #6DADD9

Accessibility & contrast

On white

5.27
#2A71A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2A71A2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2A71A2#FFFFFF#000000##FFFFFF
##2A71A21.005.273.985.27
#FFFFFF5.271.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2a71a2;
/* rgb */ color: rgb(42, 113, 162);
/* oklch */ color: oklch(52.8% 0.104 242.7);
Tailwind
colors: {
  custom: {
    50: '#7499be',
    500: '#2a71a2',
    950: '#000000',
  },
}
SCSS
$custom: #2a71a2;
$custom-light: #7499be;
$custom-dark: #000000;
JSON
{
  "hex": "#2a71a2",
  "rgb": {
    "r": 42,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 204.5,
    "s": 58.824,
    "l": 40
  },
  "oklch": {
    "l": 0.52752,
    "c": 0.10404,
    "h": 242.7
  },
  "luminance": 0.14911
}

Semantic roles & 50–950 ramp

primary
#2A71A2
secondary
#C08C68
accent
#8646E2
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2A71A2

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

Preview Lab → · Contrast checker → · Palette generator →

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