#2F71B8#2F71B8

#2F71B8 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.130 H 252.8°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2F71B8
RGBrgb(47, 113, 184)
HSLhsl(211, 59%, 45%)
HSVhsv(211, 74%, 72%)
CMYKcmyk(74.5%, 38.6%, 0%, 27.8%)
CIE-LABlab(46.81, 3.77, -43.47)
CIE-LCHlch(46.81, 43.64, 274.95°)
OKLaboklab(54.19% -0.0384 -0.1239)
OKLCHoklch(54.19% 0.13 252.8)
XYZxyz(15.7259, 15.8735, 47.5732)
Luminance0.1588 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B8 #B8762F
analogous
#2FB5B8 #2F71B8 #322FB8
triadic
#2F71B8 #B82F71 #71B82F
tetradic
#2F71B8 #B82FB5 #B8762F #2FB832
square
#2F71B8 #B82FB5 #B8762F #2FB832
split-complementary
#2F71B8 #B8322F #B5B82F
monochromatic
#163557 #235387 #2F71B8 #5290D3 #82AFDF

Accessibility & contrast

On white

5.03
#2F71B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.18
#2F71B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B8
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B8#FFFFFF#000000##FFFFFF
##2F71B81.005.034.185.03
#FFFFFF5.031.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BB
Deuteranopia (green-blind)
#3B69B7
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71b8;
/* rgb */ color: rgb(47, 113, 184);
/* oklch */ color: oklch(54.2% 0.130 252.8);
Tailwind
colors: {
  custom: {
    50: '#7a99ce',
    500: '#2f71b8',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b8;
$custom-light: #7a99ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b8",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 211.095,
    "s": 59.307,
    "l": 45.294
  },
  "oklch": {
    "l": 0.5419,
    "c": 0.12976,
    "h": 252.8
  },
  "luminance": 0.15875
}

Semantic roles & 50–950 ramp

primary
#2F71B8
secondary
#C8A37B
accent
#9745E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B8

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

Preview Lab → · Contrast checker → · Palette generator →

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