#2F71B6#2F71B6

#2F71B6 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.127 H 252.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2F71B6
RGBrgb(47, 113, 182)
HSLhsl(211, 59%, 45%)
HSVhsv(211, 74%, 71%)
CMYKcmyk(74.2%, 37.9%, 0%, 28.6%)
CIE-LABlab(46.70, 3.03, -42.49)
CIE-LCHlch(46.70, 42.60, 274.07°)
OKLaboklab(54.07% -0.0389 -0.121)
OKLCHoklch(54.07% 0.127 252.2)
XYZxyz(15.5178, 15.7902, 46.4769)
Luminance0.1579 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B6 #B6742F
analogous
#2FB4B6 #2F71B6 #312FB6
triadic
#2F71B6 #B62F71 #71B62F
tetradic
#2F71B6 #B62FB4 #B6742F #2FB631
square
#2F71B6 #B62FB4 #B6742F #2FB631
split-complementary
#2F71B6 #B6312F #B4B62F
monochromatic
#163555 #225385 #2F71B6 #5090D2 #81AFDE

Accessibility & contrast

On white

5.05
#2F71B6 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2F71B6 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B6
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B6#FFFFFF#000000##FFFFFF
##2F71B61.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5175B9
Deuteranopia (green-blind)
#3C69B5
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71b6;
/* rgb */ color: rgb(47, 113, 182);
/* oklch */ color: oklch(54.1% 0.127 252.2);
Tailwind
colors: {
  custom: {
    50: '#7999cc',
    500: '#2f71b6',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b6;
$custom-light: #7999cc;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b6",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 182
  },
  "hsl": {
    "h": 210.667,
    "s": 58.952,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54068,
    "c": 0.12715,
    "h": 252.2
  },
  "luminance": 0.15792
}

Semantic roles & 50–950 ramp

primary
#2F71B6
secondary
#C7A179
accent
#9646E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B6

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

Preview Lab → · Contrast checker → · Palette generator →

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