#2F71B4#2F71B4

#2F71B4 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.125 H 251.5°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2F71B4
RGBrgb(47, 113, 180)
HSLhsl(210, 59%, 45%)
HSVhsv(210, 74%, 71%)
CMYKcmyk(73.9%, 37.2%, 0%, 29.4%)
CIE-LABlab(46.59, 2.28, -41.50)
CIE-LCHlch(46.59, 41.56, 273.15°)
OKLaboklab(53.95% -0.0394 -0.1181)
OKLCHoklch(53.95% 0.125 251.5)
XYZxyz(15.3125, 15.7082, 45.3961)
Luminance0.1571 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B4 #B4722F
analogous
#2FB3B4 #2F71B4 #302FB4
triadic
#2F71B4 #B42F71 #71B42F
tetradic
#2F71B4 #B42FB3 #B4722F #2FB430
square
#2F71B4 #B42FB3 #B4722F #2FB430
split-complementary
#2F71B4 #B4302F #B3B42F
monochromatic
#163453 #225383 #2F71B4 #4F90D1 #80AEDE

Accessibility & contrast

On white

5.07
#2F71B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2F71B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B4
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B4#FFFFFF#000000##FFFFFF
##2F71B41.005.074.145.07
#FFFFFF5.071.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B7
Deuteranopia (green-blind)
#3E69B3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f71b4;
/* rgb */ color: rgb(47, 113, 180);
/* oklch */ color: oklch(53.9% 0.125 251.5);
Tailwind
colors: {
  custom: {
    50: '#7999cb',
    500: '#2f71b4',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b4;
$custom-light: #7999cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b4",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 210.226,
    "s": 58.59,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53947,
    "c": 0.12456,
    "h": 251.5
  },
  "luminance": 0.1571
}

Semantic roles & 50–950 ramp

primary
#2F71B4
secondary
#C7A078
accent
#9446E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B4

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

Preview Lab → · Contrast checker → · Palette generator →

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