#2F71B5#2F71B5

#2F71B5 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.0% C 0.126 H 251.9°. Best body text is #FFFFFF at 5.06:1 contrast (WCAG AA passes).

Color values

HEX#2F71B5
RGBrgb(47, 113, 181)
HSLhsl(210, 59%, 45%)
HSVhsv(210, 74%, 71%)
CMYKcmyk(74%, 37.6%, 0%, 29%)
CIE-LABlab(46.64, 2.65, -41.99)
CIE-LCHlch(46.64, 42.08, 273.62°)
OKLaboklab(54.01% -0.0392 -0.1196)
OKLCHoklch(54.01% 0.126 251.9)
XYZxyz(15.4148, 15.7491, 45.9346)
Luminance0.1575 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71B5 #B5732F
analogous
#2FB4B5 #2F71B5 #302FB5
triadic
#2F71B5 #B52F71 #71B52F
tetradic
#2F71B5 #B52FB4 #B5732F #2FB530
square
#2F71B5 #B52FB4 #B5732F #2FB530
split-complementary
#2F71B5 #B5302F #B4B52F
monochromatic
#163454 #225384 #2F71B5 #5090D1 #80AEDE

Accessibility & contrast

On white

5.06
#2F71B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2F71B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71B5
5.06:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71B5#FFFFFF#000000##FFFFFF
##2F71B51.005.064.155.06
#FFFFFF5.061.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.061.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B8
Deuteranopia (green-blind)
#3D69B4
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71b5;
/* rgb */ color: rgb(47, 113, 181);
/* oklch */ color: oklch(54.0% 0.126 251.9);
Tailwind
colors: {
  custom: {
    50: '#7999cb',
    500: '#2f71b5',
    950: '#000000',
  },
}
SCSS
$custom: #2f71b5;
$custom-light: #7999cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71b5",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 181
  },
  "hsl": {
    "h": 210.448,
    "s": 58.772,
    "l": 44.706
  },
  "oklch": {
    "l": 0.54007,
    "c": 0.12585,
    "h": 251.9
  },
  "luminance": 0.15751
}

Semantic roles & 50–950 ramp

primary
#2F71B5
secondary
#C7A079
accent
#9546E2
background
#F8F9FC
surface
#EFF2F8
border
#CACCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71B5

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

Preview Lab → · Contrast checker → · Palette generator →

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