#2F71A7#2F71A7

#2F71A7 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.2% C 0.108 H 246.5°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2F71A7
RGBrgb(47, 113, 167)
HSLhsl(207, 56%, 42%)
HSVhsv(207, 72%, 65%)
CMYKcmyk(71.9%, 32.3%, 0%, 34.5%)
CIE-LABlab(45.91, -2.49, -34.98)
CIE-LCHlch(45.91, 35.07, 265.93°)
OKLaboklab(53.19% -0.0431 -0.0991)
OKLCHoklch(53.19% 0.108 246.5)
XYZxyz(14.0498, 15.2031, 38.7457)
Luminance0.1520 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71A7 #A7652F
analogous
#2FA7A1 #2F71A7 #2F35A7
triadic
#2F71A7 #A72F71 #71A72F
tetradic
#2F71A7 #A12FA7 #A7652F #35A72F
square
#2F71A7 #A12FA7 #A7652F #35A72F
split-complementary
#2F71A7 #A72F35 #A7A12F
monochromatic
#143047 #225177 #2F71A7 #4890CB #78ADD9

Accessibility & contrast

On white

5.20
#2F71A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2F71A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71A7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71A7#FFFFFF#000000##FFFFFF
##2F71A71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2f71a7;
/* rgb */ color: rgb(47, 113, 167);
/* oklch */ color: oklch(53.2% 0.108 246.5);
Tailwind
colors: {
  custom: {
    50: '#7799c1',
    500: '#2f71a7',
    950: '#000000',
  },
}
SCSS
$custom: #2f71a7;
$custom-light: #7799c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71a7",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 207,
    "s": 56.075,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53193,
    "c": 0.10807,
    "h": 246.5
  },
  "luminance": 0.15205
}

Semantic roles & 50–950 ramp

primary
#2F71A7
secondary
#C19571
accent
#8C48DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F71A7

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

Preview Lab → · Contrast checker → · Palette generator →

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