#2F71A8#2F71A8

#2F71A8 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.2% C 0.109 H 247.0°. Best body text is #FFFFFF at 5.19:1 contrast (WCAG AA passes).

Color values

HEX#2F71A8
RGBrgb(47, 113, 168)
HSLhsl(207, 56%, 42%)
HSVhsv(207, 72%, 66%)
CMYKcmyk(72%, 32.7%, 0%, 34.1%)
CIE-LABlab(45.96, -2.12, -35.49)
CIE-LCHlch(45.96, 35.55, 266.58°)
OKLaboklab(53.25% -0.0428 -0.1006)
OKLCHoklch(53.25% 0.109 247)
XYZxyz(14.1426, 15.2402, 39.2345)
Luminance0.1524 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71A8 #A8662F
analogous
#2FA8A3 #2F71A8 #2F34A8
triadic
#2F71A8 #A82F71 #71A82F
tetradic
#2F71A8 #A32FA8 #A8662F #34A82F
square
#2F71A8 #A32FA8 #A8662F #34A82F
split-complementary
#2F71A8 #A82F34 #A8A32F
monochromatic
#143148 #225178 #2F71A8 #4890CC #78ADD9

Accessibility & contrast

On white

5.19
#2F71A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2F71A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71A8
5.19:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71A8#FFFFFF#000000##FFFFFF
##2F71A81.005.194.055.19
#FFFFFF5.191.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.191.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5873AA
Deuteranopia (green-blind)
#4768A7
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f71a8;
/* rgb */ color: rgb(47, 113, 168);
/* oklch */ color: oklch(53.2% 0.109 247.0);
Tailwind
colors: {
  custom: {
    50: '#7799c2',
    500: '#2f71a8',
    950: '#000000',
  },
}
SCSS
$custom: #2f71a8;
$custom-light: #7799c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71a8",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 207.273,
    "s": 56.279,
    "l": 42.157
  },
  "oklch": {
    "l": 0.53249,
    "c": 0.10931,
    "h": 247
  },
  "luminance": 0.15242
}

Semantic roles & 50–950 ramp

primary
#2F71A8
secondary
#C19671
accent
#8D48E0
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F71A8

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

Preview Lab → · Contrast checker → · Palette generator →

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