#2F71C8#2F71C8

#2F71C8 is a mid, vivid cyan. Relative luminance 0.166; OKLCH L 55.2% C 0.151 H 256.6°. Best body text is #FFFFFF at 4.86:1 contrast (WCAG AA passes).

Color values

HEX#2F71C8
RGBrgb(47, 113, 200)
HSLhsl(214, 62%, 48%)
HSVhsv(214, 77%, 78%)
CMYKcmyk(76.5%, 43.5%, 0%, 21.6%)
CIE-LABlab(47.73, 9.74, -51.23)
CIE-LCHlch(47.73, 52.14, 280.77°)
OKLaboklab(55.21% -0.0349 -0.1467)
OKLCHoklch(55.21% 0.151 256.6)
XYZxyz(17.4989, 16.5827, 56.9109)
Luminance0.1658 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C8 #C8862F
analogous
#2FBDC8 #2F71C8 #3A2FC8
triadic
#2F71C8 #C82F71 #71C82F
tetradic
#2F71C8 #C82FBD #C8862F #2FC83A
square
#2F71C8 #C82FBD #C8862F #2FC83A
split-complementary
#2F71C8 #C83A2F #BDC82F
monochromatic
#183965 #235596 #2F71C8 #5C92D9 #8DB3E4

Accessibility & contrast

On white

4.86
#2F71C8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.32
#2F71C8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C8
4.86:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C8#FFFFFF#000000##FFFFFF
##2F71C81.004.864.324.86
#FFFFFF4.861.0021.001.00
#0000004.3221.001.0021.00
##FFFFFF4.861.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4579CB
Deuteranopia (green-blind)
#286BC6
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f71c8;
/* rgb */ color: rgb(47, 113, 200);
/* oklch */ color: oklch(55.2% 0.151 256.6);
Tailwind
colors: {
  custom: {
    50: '#7d99d9',
    500: '#2f71c8',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c8;
$custom-light: #7d99d9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c8",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 200
  },
  "hsl": {
    "h": 214.118,
    "s": 61.943,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55205,
    "c": 0.15078,
    "h": 256.6
  },
  "luminance": 0.16585
}

Semantic roles & 50–950 ramp

primary
#2F71C8
secondary
#CFAE84
accent
#9F43E5
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F71C8

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

Preview Lab → · Contrast checker → · Palette generator →

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