#2F71B9#2F71B9

#2F71B9 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.3% C 0.131 H 253.1°. Best body text is #FFFFFF at 5.02:1 contrast (WCAG AA passes).

Color values

HEX#2F71B9
RGBrgb(47, 113, 185)
HSLhsl(211, 59%, 45%)
HSVhsv(211, 75%, 73%)
CMYKcmyk(74.6%, 38.9%, 0%, 27.5%)
CIE-LABlab(46.86, 4.14, -43.96)
CIE-LCHlch(46.86, 44.16, 275.38°)
OKLaboklab(54.25% -0.0382 -0.1254)
OKLCHoklch(54.25% 0.131 253.1)
XYZxyz(15.8311, 15.9156, 48.1272)
Luminance0.1592 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B9 #B9772F
analogous
#2FB6B9 #2F71B9 #322FB9
triadic
#2F71B9 #B92F71 #71B92F
tetradic
#2F71B9 #B92FB6 #B9772F #2FB932
square
#2F71B9 #B92FB6 #B9772F #2FB932
split-complementary
#2F71B9 #B9322F #B6B92F
monochromatic
#163557 #235388 #2F71B9 #5290D3 #83AFDF

Accessibility & contrast

On white

5.02
#2F71B9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F71B9
5.02:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B9#FFFFFF#000000##FFFFFF
##2F71B91.005.024.185.02
#FFFFFF5.021.0021.001.00
#0000004.1821.001.0021.00
##FFFFFF5.021.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F76BC
Deuteranopia (green-blind)
#3A69B8
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71b9;
/* rgb */ color: rgb(47, 113, 185);
/* oklch */ color: oklch(54.3% 0.131 253.1);
Tailwind
colors: {
  custom: {
    50: '#7a99ce',
    500: '#2f71b9',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b9;
$custom-light: #7a99ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b9",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 185
  },
  "hsl": {
    "h": 211.304,
    "s": 59.483,
    "l": 45.49
  },
  "oklch": {
    "l": 0.54251,
    "c": 0.13106,
    "h": 253.1
  },
  "luminance": 0.15917
}

Semantic roles & 50–950 ramp

primary
#2F71B9
secondary
#C9A47B
accent
#9745E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2F71B9

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

Preview Lab → · Contrast checker → · Palette generator →

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