#2F71C0#2F71C0

#2F71C0 is a mid, vivid cyan. Relative luminance 0.162; OKLCH L 54.7% C 0.140 H 254.9°. Best body text is #FFFFFF at 4.95:1 contrast (WCAG AA passes).

Color values

HEX#2F71C0
RGBrgb(47, 113, 192)
HSLhsl(213, 61%, 47%)
HSVhsv(213, 76%, 75%)
CMYKcmyk(75.5%, 41.1%, 0%, 24.7%)
CIE-LABlab(47.26, 6.75, -47.38)
CIE-LCHlch(47.26, 47.86, 278.11°)
OKLaboklab(54.69% -0.0365 -0.1354)
OKLCHoklch(54.69% 0.14 254.9)
XYZxyz(16.5883, 16.2185, 52.1152)
Luminance0.1622 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71C0 #C07E2F
analogous
#2FB9C0 #2F71C0 #362FC0
triadic
#2F71C0 #C02F71 #71C02F
tetradic
#2F71C0 #C02FB9 #C07E2F #2FC036
square
#2F71C0 #C02FB9 #C07E2F #2FC036
split-complementary
#2F71C0 #C0362F #B9C02F
monochromatic
#17375E #23548F #2F71C0 #5690D6 #88B1E2

Accessibility & contrast

On white

4.95
#2F71C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.24
#2F71C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71C0
4.95:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71C0#FFFFFF#000000##FFFFFF
##2F71C01.004.954.244.95
#FFFFFF4.951.0021.001.00
#0000004.2421.001.0021.00
##FFFFFF4.951.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C3
Deuteranopia (green-blind)
#326ABE
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2f71c0;
/* rgb */ color: rgb(47, 113, 192);
/* oklch */ color: oklch(54.7% 0.140 254.9);
Tailwind
colors: {
  custom: {
    50: '#7b99d3',
    500: '#2f71c0',
    950: '#000000',
  },
}
SCSS
$custom: #2f71c0;
$custom-light: #7b99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71c0",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 192
  },
  "hsl": {
    "h": 212.69,
    "s": 60.669,
    "l": 46.863
  },
  "oklch": {
    "l": 0.54688,
    "c": 0.14024,
    "h": 254.9
  },
  "luminance": 0.1622
}

Semantic roles & 50–950 ramp

primary
#2F71C0
secondary
#CBA97F
accent
#9B44E4
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2F71C0

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

Preview Lab → · Contrast checker → · Palette generator →

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