#2F71C1#2F71C1

#2F71C1 is a mid, vivid cyan. Relative luminance 0.163; OKLCH L 54.8% C 0.142 H 255.1°. Best body text is #FFFFFF at 4.94:1 contrast (WCAG AA passes).

Color values

HEX#2F71C1
RGBrgb(47, 113, 193)
HSLhsl(213, 61%, 47%)
HSVhsv(213, 76%, 76%)
CMYKcmyk(75.6%, 41.5%, 0%, 24.3%)
CIE-LABlab(47.32, 7.12, -47.86)
CIE-LCHlch(47.32, 48.39, 278.46°)
OKLaboklab(54.75% -0.0363 -0.1368)
OKLCHoklch(54.75% 0.142 255.1)
XYZxyz(16.6995, 16.2629, 52.7007)
Luminance0.1626 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C1 #C17F2F
analogous
#2FBAC1 #2F71C1 #362FC1
triadic
#2F71C1 #C12F71 #71C12F
tetradic
#2F71C1 #C12FBA #C17F2F #2FC136
square
#2F71C1 #C12FBA #C17F2F #2FC136
split-complementary
#2F71C1 #C1362F #BAC12F
monochromatic
#17375F #235490 #2F71C1 #5791D6 #88B1E2

Accessibility & contrast

On white

4.94
#2F71C1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.25
#2F71C1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C1
4.94:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C1#FFFFFF#000000##FFFFFF
##2F71C11.004.944.254.94
#FFFFFF4.941.0021.001.00
#0000004.2521.001.0021.00
##FFFFFF4.941.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A77C4
Deuteranopia (green-blind)
#316ABF
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f71c1;
/* rgb */ color: rgb(47, 113, 193);
/* oklch */ color: oklch(54.8% 0.142 255.1);
Tailwind
colors: {
  custom: {
    50: '#7c99d4',
    500: '#2f71c1',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c1;
$custom-light: #7c99d4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c1",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 193
  },
  "hsl": {
    "h": 212.877,
    "s": 60.833,
    "l": 47.059
  },
  "oklch": {
    "l": 0.54752,
    "c": 0.14156,
    "h": 255.1
  },
  "luminance": 0.16265
}

Semantic roles & 50–950 ramp

primary
#2F71C1
secondary
#CCAA80
accent
#9C44E4
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2F71C1

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

Preview Lab → · Contrast checker → · Palette generator →

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