#2F71B7#2F71B7

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

Color values

HEX#2F71B7
RGBrgb(47, 113, 183)
HSLhsl(211, 59%, 45%)
HSVhsv(211, 74%, 72%)
CMYKcmyk(74.3%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.75, 3.40, -42.98)
CIE-LCHlch(46.75, 43.11, 274.52°)
OKLaboklab(54.13% -0.0387 -0.1225)
OKLCHoklch(54.13% 0.128 252.5)
XYZxyz(15.6215, 15.8317, 47.0231)
Luminance0.1583 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B7 #B7752F
analogous
#2FB5B7 #2F71B7 #312FB7
triadic
#2F71B7 #B72F71 #71B72F
tetradic
#2F71B7 #B72FB5 #B7752F #2FB731
square
#2F71B7 #B72FB5 #B7752F #2FB731
split-complementary
#2F71B7 #B7312F #B5B72F
monochromatic
#163556 #225386 #2F71B7 #5190D2 #82AFDF

Accessibility & contrast

On white

5.04
#2F71B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2F71B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B7
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B7#FFFFFF#000000##FFFFFF
##2F71B71.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BA
Deuteranopia (green-blind)
#3C69B6
Tritanopia (blue-blind)
#00818B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71b7;
/* rgb */ color: rgb(47, 113, 183);
/* oklch */ color: oklch(54.1% 0.128 252.5);
Tailwind
colors: {
  custom: {
    50: '#7a99cd',
    500: '#2f71b7',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b7;
$custom-light: #7a99cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b7",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 210.882,
    "s": 59.13,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54128,
    "c": 0.12845,
    "h": 252.5
  },
  "luminance": 0.15833
}

Semantic roles & 50–950 ramp

primary
#2F71B7
secondary
#C8A27A
accent
#9645E2
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B7

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

Preview Lab → · Contrast checker → · Palette generator →

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