#2F71C2#2F71C2

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

Color values

HEX#2F71C2
RGBrgb(47, 113, 194)
HSLhsl(213, 61%, 47%)
HSVhsv(213, 76%, 76%)
CMYKcmyk(75.8%, 41.8%, 0%, 23.9%)
CIE-LABlab(47.38, 7.50, -48.34)
CIE-LCHlch(47.38, 48.92, 278.81°)
OKLaboklab(54.82% -0.0361 -0.1382)
OKLCHoklch(54.82% 0.143 255.4)
XYZxyz(16.8114, 16.3077, 53.2902)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C2 #C2802F
analogous
#2FBBC2 #2F71C2 #362FC2
triadic
#2F71C2 #C22F71 #71C22F
tetradic
#2F71C2 #C22FBB #C2802F #2FC236
square
#2F71C2 #C22FBB #C2802F #2FC236
split-complementary
#2F71C2 #C2362F #BBC22F
monochromatic
#17385F #235491 #2F71C2 #5891D6 #89B1E2

Accessibility & contrast

On white

4.93
#2F71C2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#2F71C2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C2
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C2#FFFFFF#000000##FFFFFF
##2F71C21.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4A78C5
Deuteranopia (green-blind)
#306AC0
Tritanopia (blue-blind)
#008490
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f71c2;
/* rgb */ color: rgb(47, 113, 194);
/* oklch */ color: oklch(54.8% 0.143 255.4);
Tailwind
colors: {
  custom: {
    50: '#7c99d5',
    500: '#2f71c2',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c2;
$custom-light: #7c99d5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c2",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 194
  },
  "hsl": {
    "h": 213.061,
    "s": 60.996,
    "l": 47.255
  },
  "oklch": {
    "l": 0.54816,
    "c": 0.14288,
    "h": 255.4
  },
  "luminance": 0.1631
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2F71C2

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

Preview Lab → · Contrast checker → · Palette generator →

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