#2F71BD#2F71BD

#2F71BD is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.5% C 0.136 H 254.2°. Best body text is #FFFFFF at 4.98:1 contrast (WCAG AA passes).

Color values

HEX#2F71BD
RGBrgb(47, 113, 189)
HSLhsl(212, 60%, 46%)
HSVhsv(212, 75%, 74%)
CMYKcmyk(75.1%, 40.2%, 0%, 25.9%)
CIE-LABlab(47.09, 5.63, -45.92)
CIE-LCHlch(47.09, 46.26, 276.99°)
OKLaboklab(54.5% -0.0372 -0.1311)
OKLCHoklch(54.5% 0.136 254.2)
XYZxyz(16.2593, 16.0869, 50.3824)
Luminance0.1609 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71BD #BD7B2F
analogous
#2FB8BD #2F71BD #342FBD
triadic
#2F71BD #BD2F71 #71BD2F
tetradic
#2F71BD #BD2FB8 #BD7B2F #2FBD34
square
#2F71BD #BD2FB8 #BD7B2F #2FBD34
split-complementary
#2F71BD #BD342F #B8BD2F
monochromatic
#17365B #23548C #2F71BD #5590D5 #86B0E1

Accessibility & contrast

On white

4.98
#2F71BD on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.22
#2F71BD on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71BD
4.98:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71BD#FFFFFF#000000##FFFFFF
##2F71BD1.004.984.224.98
#FFFFFF4.981.0021.001.00
#0000004.2221.001.0021.00
##FFFFFF4.981.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4D77C0
Deuteranopia (green-blind)
#366ABB
Tritanopia (blue-blind)
#00838E
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f71bd;
/* rgb */ color: rgb(47, 113, 189);
/* oklch */ color: oklch(54.5% 0.136 254.2);
Tailwind
colors: {
  custom: {
    50: '#7b99d1',
    500: '#2f71bd',
    950: '#000000',
  },
}
SCSS
$custom: #2f71bd;
$custom-light: #7b99d1;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71bd",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 189
  },
  "hsl": {
    "h": 212.113,
    "s": 60.169,
    "l": 46.275
  },
  "oklch": {
    "l": 0.54499,
    "c": 0.1363,
    "h": 254.2
  },
  "luminance": 0.16089
}

Semantic roles & 50–950 ramp

primary
#2F71BD
secondary
#CAA77E
accent
#9944E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #2F71BD

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

Preview Lab → · Contrast checker → · Palette generator →

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