#2F71B2#2F71B2

#2F71B2 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.8% C 0.122 H 250.9°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2F71B2
RGBrgb(47, 113, 178)
HSLhsl(210, 58%, 44%)
HSVhsv(210, 74%, 70%)
CMYKcmyk(73.6%, 36.5%, 0%, 30.2%)
CIE-LABlab(46.48, 1.55, -40.51)
CIE-LCHlch(46.48, 40.54, 272.18°)
OKLaboklab(53.83% -0.0399 -0.1152)
OKLCHoklch(53.83% 0.122 250.9)
XYZxyz(15.1103, 15.6272, 44.3309)
Luminance0.1563 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B2 #B2702F
analogous
#2FB2B2 #2F71B2 #2F30B2
triadic
#2F71B2 #B22F71 #71B22F
tetradic
#2F71B2 #B22FB2 #B2702F #30B22F
square
#2F71B2 #B22FB2 #B2702F #30B22F
split-complementary
#2F71B2 #B22F30 #B2B22F
monochromatic
#153451 #225282 #2F71B2 #4E90D0 #7EAEDD

Accessibility & contrast

On white

5.09
#2F71B2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

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

Best text color

#FFFFFF on #2F71B2
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B2#FFFFFF#000000##FFFFFF
##2F71B21.005.094.135.09
#FFFFFF5.091.0021.001.00
#0000004.1321.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5375B5
Deuteranopia (green-blind)
#4069B1
Tritanopia (blue-blind)
#008089
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f71b2;
/* rgb */ color: rgb(47, 113, 178);
/* oklch */ color: oklch(53.8% 0.122 250.9);
Tailwind
colors: {
  custom: {
    50: '#7999c9',
    500: '#2f71b2',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b2;
$custom-light: #7999c9;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b2",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 178
  },
  "hsl": {
    "h": 209.771,
    "s": 58.222,
    "l": 44.118
  },
  "oklch": {
    "l": 0.53828,
    "c": 0.12198,
    "h": 250.9
  },
  "luminance": 0.15629
}

Semantic roles & 50–950 ramp

primary
#2F71B2
secondary
#C69E77
accent
#9346E1
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B2

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

Preview Lab → · Contrast checker → · Palette generator →

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