#2F71A4#2F71A4

#2F71A4 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.0% C 0.104 H 245.1°. Best body text is #FFFFFF at 5.23:1 contrast (WCAG AA passes).

Color values

HEX#2F71A4
RGBrgb(47, 113, 164)
HSLhsl(206, 55%, 41%)
HSVhsv(206, 71%, 64%)
CMYKcmyk(71.3%, 31.1%, 0%, 35.7%)
CIE-LABlab(45.76, -3.57, -33.46)
CIE-LCHlch(45.76, 33.65, 263.90°)
OKLaboklab(53.03% -0.044 -0.0947)
OKLCHoklch(53.03% 0.104 245.1)
XYZxyz(13.7757, 15.0934, 37.3021)
Luminance0.1510 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71A4 #A4622F
analogous
#2FA49D #2F71A4 #2F37A4
triadic
#2F71A4 #A42F71 #71A42F
tetradic
#2F71A4 #9D2FA4 #A4622F #37A42F
square
#2F71A4 #9D2FA4 #A4622F #37A42F
split-complementary
#2F71A4 #A42F37 #A49D2F
monochromatic
#142F45 #215074 #2F71A4 #4691CA #76ADD8

Accessibility & contrast

On white

5.23
#2F71A4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2F71A4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71A4
5.23:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71A4#FFFFFF#000000##FFFFFF
##2F71A41.005.234.025.23
#FFFFFF5.231.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.231.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5A73A6
Deuteranopia (green-blind)
#4A67A3
Tritanopia (blue-blind)
#007D83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f71a4;
/* rgb */ color: rgb(47, 113, 164);
/* oklch */ color: oklch(53.0% 0.104 245.1);
Tailwind
colors: {
  custom: {
    50: '#7699bf',
    500: '#2f71a4',
    950: '#000000',
  },
}
SCSS
$custom: #2f71a4;
$custom-light: #7699bf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71a4",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 164
  },
  "hsl": {
    "h": 206.154,
    "s": 55.45,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53026,
    "c": 0.1044,
    "h": 245.1
  },
  "luminance": 0.15095
}

Semantic roles & 50–950 ramp

primary
#2F71A4
secondary
#C0926F
accent
#8A49DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F71A4

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

Preview Lab → · Contrast checker → · Palette generator →

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