#2F71C4#2F71C4

#2F71C4 is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 54.9% C 0.146 H 255.8°. Best body text is #FFFFFF at 4.91:1 contrast (WCAG AA passes).

Color values

HEX#2F71C4
RGBrgb(47, 113, 196)
HSLhsl(213, 61%, 48%)
HSVhsv(213, 76%, 77%)
CMYKcmyk(76%, 42.3%, 0%, 23.1%)
CIE-LABlab(47.49, 8.24, -49.31)
CIE-LCHlch(47.49, 49.99, 279.49°)
OKLaboklab(54.95% -0.0357 -0.1411)
OKLCHoklch(54.95% 0.146 255.8)
XYZxyz(17.0375, 16.3982, 54.4811)
Luminance0.1640 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C4 #C4822F
analogous
#2FBBC4 #2F71C4 #382FC4
triadic
#2F71C4 #C42F71 #71C42F
tetradic
#2F71C4 #C42FBB #C4822F #2FC438
square
#2F71C4 #C42FBB #C4822F #2FC438
split-complementary
#2F71C4 #C4382F #BBC42F
monochromatic
#173861 #235593 #2F71C4 #5991D7 #8AB2E3

Accessibility & contrast

On white

4.91
#2F71C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.28
#2F71C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C4
4.91:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C4#FFFFFF#000000##FFFFFF
##2F71C41.004.914.284.91
#FFFFFF4.911.0021.001.00
#0000004.2821.001.0021.00
##FFFFFF4.911.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4878C7
Deuteranopia (green-blind)
#2D6AC2
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f71c4;
/* rgb */ color: rgb(47, 113, 196);
/* oklch */ color: oklch(54.9% 0.146 255.8);
Tailwind
colors: {
  custom: {
    50: '#7c99d6',
    500: '#2f71c4',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c4;
$custom-light: #7c99d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c4",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 196
  },
  "hsl": {
    "h": 213.423,
    "s": 61.317,
    "l": 47.647
  },
  "oklch": {
    "l": 0.54945,
    "c": 0.14551,
    "h": 255.8
  },
  "luminance": 0.164
}

Semantic roles & 50–950 ramp

primary
#2F71C4
secondary
#CDAC82
accent
#9D43E4
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2F71C4

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

Preview Lab → · Contrast checker → · Palette generator →

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