#2F71B3#2F71B3

#2F71B3 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.123 H 251.2°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2F71B3
RGBrgb(47, 113, 179)
HSLhsl(210, 58%, 44%)
HSVhsv(210, 74%, 70%)
CMYKcmyk(73.7%, 36.9%, 0%, 29.8%)
CIE-LABlab(46.54, 1.91, -41.00)
CIE-LCHlch(46.54, 41.05, 272.67°)
OKLaboklab(53.89% -0.0397 -0.1167)
OKLCHoklch(53.89% 0.123 251.2)
XYZxyz(15.2110, 15.6676, 44.8616)
Luminance0.1567 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B3 #B3712F
analogous
#2FB3B3 #2F71B3 #2F2FB3
triadic
#2F71B3 #B32F71 #71B32F
tetradic
#2F71B3 #B32FB3 #B3712F #2FB32F
square
#2F71B3 #B32FB3 #B3712F #2FB32F
split-complementary
#2F71B3 #B32F2F #B3B32F
monochromatic
#163452 #225283 #2F71B3 #4F90D1 #7FAEDD

Accessibility & contrast

On white

5.08
#2F71B3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.13
#2F71B3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B3
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B3#FFFFFF#000000##FFFFFF
##2F71B31.005.084.135.08
#FFFFFF5.081.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B6
Deuteranopia (green-blind)
#3F69B2
Tritanopia (blue-blind)
#008189
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f71b3;
/* rgb */ color: rgb(47, 113, 179);
/* oklch */ color: oklch(53.9% 0.123 251.2);
Tailwind
colors: {
  custom: {
    50: '#7999ca',
    500: '#2f71b3',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b3;
$custom-light: #7999ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b3",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 179
  },
  "hsl": {
    "h": 210,
    "s": 58.407,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53887,
    "c": 0.12326,
    "h": 251.2
  },
  "luminance": 0.15669
}

Semantic roles & 50–950 ramp

primary
#2F71B3
secondary
#C69F78
accent
#9446E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B3

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

Preview Lab → · Contrast checker → · Palette generator →

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