#2F71BC#2F71BC

#2F71BC is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.4% C 0.135 H 253.9°. Best body text is #FFFFFF at 4.99:1 contrast (WCAG AA passes).

Color values

HEX#2F71BC
RGBrgb(47, 113, 188)
HSLhsl(212, 60%, 46%)
HSVhsv(212, 75%, 74%)
CMYKcmyk(75%, 39.9%, 0%, 26.3%)
CIE-LABlab(47.03, 5.26, -45.43)
CIE-LCHlch(47.03, 45.74, 276.60°)
OKLaboklab(54.44% -0.0374 -0.1297)
OKLCHoklch(54.44% 0.135 253.9)
XYZxyz(16.1511, 16.0436, 49.8127)
Luminance0.1605 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71BC #BC7A2F
analogous
#2FB7BC #2F71BC #332FBC
triadic
#2F71BC #BC2F71 #71BC2F
tetradic
#2F71BC #BC2FB7 #BC7A2F #2FBC33
square
#2F71BC #BC2FB7 #BC7A2F #2FBC33
split-complementary
#2F71BC #BC332F #B7BC2F
monochromatic
#17365A #23548B #2F71BC #5490D4 #85B0E0

Accessibility & contrast

On white

4.99
#2F71BC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.21
#2F71BC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71BC
4.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71BC#FFFFFF#000000##FFFFFF
##2F71BC1.004.994.214.99
#FFFFFF4.991.0021.001.00
#0000004.2121.001.0021.00
##FFFFFF4.991.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D77BF
Deuteranopia (green-blind)
#376ABB
Tritanopia (blue-blind)
#00838D
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71bc;
/* rgb */ color: rgb(47, 113, 188);
/* oklch */ color: oklch(54.4% 0.135 253.9);
Tailwind
colors: {
  custom: {
    50: '#7b99d0',
    500: '#2f71bc',
    950: '#000000',
  },
}
SCSS
$custom: #2f71bc;
$custom-light: #7b99d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71bc",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 188
  },
  "hsl": {
    "h": 211.915,
    "s": 60,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54437,
    "c": 0.13498,
    "h": 253.9
  },
  "luminance": 0.16045
}

Semantic roles & 50–950 ramp

primary
#2F71BC
secondary
#CAA67D
accent
#9945E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #2F71BC

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

Preview Lab → · Contrast checker → · Palette generator →

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