#2F71C5#2F71C5

#2F71C5 is a mid, vivid cyan. Relative luminance 0.164; OKLCH L 55.0% C 0.147 H 256.0°. Best body text is #FFFFFF at 4.90:1 contrast (WCAG AA passes).

Color values

HEX#2F71C5
RGBrgb(47, 113, 197)
HSLhsl(214, 61%, 48%)
HSVhsv(214, 76%, 77%)
CMYKcmyk(76.1%, 42.6%, 0%, 22.7%)
CIE-LABlab(47.55, 8.62, -49.79)
CIE-LCHlch(47.55, 50.53, 279.82°)
OKLaboklab(55.01% -0.0355 -0.1425)
OKLCHoklch(55.01% 0.147 256)
XYZxyz(17.1517, 16.4438, 55.0825)
Luminance0.1645 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C5 #C5832F
analogous
#2FBCC5 #2F71C5 #382FC5
triadic
#2F71C5 #C52F71 #71C52F
tetradic
#2F71C5 #C52FBC #C5832F #2FC538
square
#2F71C5 #C52FBC #C5832F #2FC538
split-complementary
#2F71C5 #C5382F #BCC52F
monochromatic
#173862 #235594 #2F71C5 #5A91D8 #8BB2E3

Accessibility & contrast

On white

4.90
#2F71C5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.29
#2F71C5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C5
4.90:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C5#FFFFFF#000000##FFFFFF
##2F71C51.004.904.294.90
#FFFFFF4.901.0021.001.00
#0000004.2921.001.0021.00
##FFFFFF4.901.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4778C8
Deuteranopia (green-blind)
#2C6AC3
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f71c5;
/* rgb */ color: rgb(47, 113, 197);
/* oklch */ color: oklch(55.0% 0.147 256.0);
Tailwind
colors: {
  custom: {
    50: '#7c99d7',
    500: '#2f71c5',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c5;
$custom-light: #7c99d7;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c5",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 197
  },
  "hsl": {
    "h": 213.6,
    "s": 61.475,
    "l": 47.843
  },
  "oklch": {
    "l": 0.55009,
    "c": 0.14683,
    "h": 256
  },
  "luminance": 0.16446
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F71C5

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

Preview Lab → · Contrast checker → · Palette generator →

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