#2F71C9#2F71C9

#2F71C9 is a mid, vivid cyan. Relative luminance 0.166; OKLCH L 55.3% C 0.152 H 256.8°. Best body text is #FFFFFF at 4.85:1 contrast (WCAG AA passes).

Color values

HEX#2F71C9
RGBrgb(47, 113, 201)
HSLhsl(214, 62%, 49%)
HSVhsv(214, 77%, 79%)
CMYKcmyk(76.6%, 43.8%, 0%, 21.2%)
CIE-LABlab(47.79, 10.12, -51.70)
CIE-LCHlch(47.79, 52.68, 281.07°)
OKLaboklab(55.27% -0.0347 -0.1481)
OKLCHoklch(55.27% 0.152 256.8)
XYZxyz(17.6161, 16.6296, 57.5284)
Luminance0.1663 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C9 #C9872F
analogous
#2FBEC9 #2F71C9 #3A2FC9
triadic
#2F71C9 #C92F71 #71C92F
tetradic
#2F71C9 #C92FBE #C9872F #2FC93A
square
#2F71C9 #C92FBE #C9872F #2FC93A
split-complementary
#2F71C9 #C93A2F #BEC92F
monochromatic
#183966 #235597 #2F71C9 #5C92D9 #8EB3E5

Accessibility & contrast

On white

4.85
#2F71C9 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.33
#2F71C9 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C9
4.85:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C9#FFFFFF#000000##FFFFFF
##2F71C91.004.854.334.85
#FFFFFF4.851.0021.001.00
#0000004.3321.001.0021.00
##FFFFFF4.851.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4479CC
Deuteranopia (green-blind)
#266BC7
Tritanopia (blue-blind)
#008693
Achromatopsia (no color)
#717171

Design tokens & code

CSS
--color: #2f71c9;
/* rgb */ color: rgb(47, 113, 201);
/* oklch */ color: oklch(55.3% 0.152 256.8);
Tailwind
colors: {
  custom: {
    50: '#7d99da',
    500: '#2f71c9',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c9;
$custom-light: #7d99da;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c9",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 201
  },
  "hsl": {
    "h": 214.286,
    "s": 62.097,
    "l": 48.627
  },
  "oklch": {
    "l": 0.55271,
    "c": 0.15211,
    "h": 256.8
  },
  "luminance": 0.16632
}

Semantic roles & 50–950 ramp

primary
#2F71C9
secondary
#CFAF85
accent
#A043E5
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2F71C9

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

Preview Lab → · Contrast checker → · Palette generator →

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