#2F71BB#2F71BB

#2F71BB is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.4% C 0.134 H 253.6°. Best body text is #FFFFFF at 5.00:1 contrast (WCAG AA passes).

Color values

HEX#2F71BB
RGBrgb(47, 113, 187)
HSLhsl(212, 60%, 46%)
HSVhsv(212, 75%, 73%)
CMYKcmyk(74.9%, 39.6%, 0%, 26.7%)
CIE-LABlab(46.98, 4.88, -44.94)
CIE-LCHlch(46.98, 45.21, 276.20°)
OKLaboklab(54.37% -0.0377 -0.1282)
OKLCHoklch(54.37% 0.134 253.6)
XYZxyz(16.0437, 16.0006, 49.2469)
Luminance0.1600 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71BB #BB792F
analogous
#2FB7BB #2F71BB #332FBB
triadic
#2F71BB #BB2F71 #71BB2F
tetradic
#2F71BB #BB2FB7 #BB792F #2FBB33
square
#2F71BB #BB2FB7 #BB792F #2FBB33
split-complementary
#2F71BB #BB332F #B7BB2F
monochromatic
#163659 #23538A #2F71BB #5390D4 #84B0E0

Accessibility & contrast

On white

5.00
#2F71BB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.20
#2F71BB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71BB
5.00:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71BB#FFFFFF#000000##FFFFFF
##2F71BB1.005.004.205.00
#FFFFFF5.001.0021.001.00
#0000004.2021.001.0021.00
##FFFFFF5.001.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BE
Deuteranopia (green-blind)
#3869BA
Tritanopia (blue-blind)
#00828D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71bb;
/* rgb */ color: rgb(47, 113, 187);
/* oklch */ color: oklch(54.4% 0.134 253.6);
Tailwind
colors: {
  custom: {
    50: '#7a99d0',
    500: '#2f71bb',
    950: '#000000',
  },
}
SCSS
$custom: #2f71bb;
$custom-light: #7a99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71bb",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 187
  },
  "hsl": {
    "h": 211.714,
    "s": 59.829,
    "l": 45.882
  },
  "oklch": {
    "l": 0.54374,
    "c": 0.13367,
    "h": 253.6
  },
  "luminance": 0.16002
}

Semantic roles & 50–950 ramp

primary
#2F71BB
secondary
#C9A57C
accent
#9845E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #2F71BB

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

Preview Lab → · Contrast checker → · Palette generator →

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