#2F71B1#2F71B1

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

Color values

HEX#2F71B1
RGBrgb(47, 113, 177)
HSLhsl(210, 58%, 44%)
HSVhsv(210, 73%, 69%)
CMYKcmyk(73.4%, 36.2%, 0%, 30.6%)
CIE-LABlab(46.43, 1.18, -40.01)
CIE-LCHlch(46.43, 40.03, 271.68°)
OKLaboklab(53.77% -0.0402 -0.1138)
OKLCHoklch(53.77% 0.121 250.5)
XYZxyz(15.0102, 15.5872, 43.8040)
Luminance0.1559 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B1 #B16F2F
analogous
#2FB1B0 #2F71B1 #2F30B1
triadic
#2F71B1 #B12F71 #71B12F
tetradic
#2F71B1 #B02FB1 #B16F2F #30B12F
square
#2F71B1 #B02FB1 #B16F2F #30B12F
split-complementary
#2F71B1 #B12F30 #B1B02F
monochromatic
#153350 #225281 #2F71B1 #4D90D0 #7EAEDD

Accessibility & contrast

On white

5.10
#2F71B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2F71B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B1
5.10:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B1#FFFFFF#000000##FFFFFF
##2F71B11.005.104.125.10
#FFFFFF5.101.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.101.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5475B4
Deuteranopia (green-blind)
#4169B0
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2f71b1;
/* rgb */ color: rgb(47, 113, 177);
/* oklch */ color: oklch(53.8% 0.121 250.5);
Tailwind
colors: {
  custom: {
    50: '#7899c8',
    500: '#2f71b1',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b1;
$custom-light: #7899c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b1",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 177
  },
  "hsl": {
    "h": 209.538,
    "s": 58.036,
    "l": 43.922
  },
  "oklch": {
    "l": 0.53768,
    "c": 0.12069,
    "h": 250.5
  },
  "luminance": 0.15589
}

Semantic roles & 50–950 ramp

primary
#2F71B1
secondary
#C59D76
accent
#9347E1
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B1

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

Preview Lab → · Contrast checker → · Palette generator →

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