#2F71A6#2F71A6

#2F71A6 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.1% C 0.107 H 246.0°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2F71A6
RGBrgb(47, 113, 166)
HSLhsl(207, 56%, 42%)
HSVhsv(207, 72%, 65%)
CMYKcmyk(71.7%, 31.9%, 0%, 34.9%)
CIE-LABlab(45.86, -2.85, -34.48)
CIE-LCHlch(45.86, 34.59, 265.27°)
OKLaboklab(53.14% -0.0434 -0.0976)
OKLCHoklch(53.14% 0.107 246)
XYZxyz(13.9577, 15.1662, 38.2608)
Luminance0.1517 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71A6 #A6642F
analogous
#2FA6A0 #2F71A6 #2F35A6
triadic
#2F71A6 #A62F71 #71A62F
tetradic
#2F71A6 #A02FA6 #A6642F #35A62F
square
#2F71A6 #A02FA6 #A6642F #35A62F
split-complementary
#2F71A6 #A62F35 #A6A02F
monochromatic
#143047 #215176 #2F71A6 #4790CB #77ADD8

Accessibility & contrast

On white

5.21
#2F71A6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F71A6
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71A6#FFFFFF#000000##FFFFFF
##2F71A61.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5973A8
Deuteranopia (green-blind)
#4868A5
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f71a6;
/* rgb */ color: rgb(47, 113, 166);
/* oklch */ color: oklch(53.1% 0.107 246.0);
Tailwind
colors: {
  custom: {
    50: '#7699c0',
    500: '#2f71a6',
    950: '#000000',
  },
}
SCSS
$custom: #2f71a6;
$custom-light: #7699c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71a6",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 166
  },
  "hsl": {
    "h": 206.723,
    "s": 55.869,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53137,
    "c": 0.10683,
    "h": 246
  },
  "luminance": 0.15168
}

Semantic roles & 50–950 ramp

primary
#2F71A6
secondary
#C19470
accent
#8C49DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F71A6

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

Preview Lab → · Contrast checker → · Palette generator →

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