#2F71BA#2F71BA

#2F71BA is a mid, vivid cyan. Relative luminance 0.160; OKLCH L 54.3% C 0.132 H 253.3°. Best body text is #FFFFFF at 5.01:1 contrast (WCAG AA passes).

Color values

HEX#2F71BA
RGBrgb(47, 113, 186)
HSLhsl(212, 60%, 46%)
HSVhsv(212, 75%, 73%)
CMYKcmyk(74.7%, 39.2%, 0%, 27.1%)
CIE-LABlab(46.92, 4.51, -44.45)
CIE-LCHlch(46.92, 44.68, 275.79°)
OKLaboklab(54.31% -0.0379 -0.1268)
OKLCHoklch(54.31% 0.132 253.3)
XYZxyz(15.9370, 15.9580, 48.6851)
Luminance0.1596 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71BA #BA782F
analogous
#2FB6BA #2F71BA #322FBA
triadic
#2F71BA #BA2F71 #71BA2F
tetradic
#2F71BA #BA2FB6 #BA782F #2FBA32
square
#2F71BA #BA2FB6 #BA782F #2FBA32
split-complementary
#2F71BA #BA322F #B6BA2F
monochromatic
#163658 #235389 #2F71BA #5390D3 #84AFE0

Accessibility & contrast

On white

5.01
#2F71BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.19
#2F71BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71BA
5.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71BA#FFFFFF#000000##FFFFFF
##2F71BA1.005.014.195.01
#FFFFFF5.011.0021.001.00
#0000004.1921.001.0021.00
##FFFFFF5.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4F76BD
Deuteranopia (green-blind)
#3969B9
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2f71ba;
/* rgb */ color: rgb(47, 113, 186);
/* oklch */ color: oklch(54.3% 0.132 253.3);
Tailwind
colors: {
  custom: {
    50: '#7a99cf',
    500: '#2f71ba',
    950: '#000000',
  },
}
SCSS
$custom: #2f71ba;
$custom-light: #7a99cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71ba",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 211.511,
    "s": 59.657,
    "l": 45.686
  },
  "oklch": {
    "l": 0.54312,
    "c": 0.13237,
    "h": 253.3
  },
  "luminance": 0.1596
}

Semantic roles & 50–950 ramp

primary
#2F71BA
secondary
#C9A47C
accent
#9845E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0B0D14
muted
#7C7E82

Preview Lab

Preview with #2F71BA

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

Preview Lab → · Contrast checker → · Palette generator →

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