#2F71AB#2F71AB

#2F71AB is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.4% C 0.113 H 248.3°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2F71AB
RGBrgb(47, 113, 171)
HSLhsl(208, 57%, 43%)
HSVhsv(208, 73%, 67%)
CMYKcmyk(72.5%, 33.9%, 0%, 32.9%)
CIE-LABlab(46.11, -1.03, -37.00)
CIE-LCHlch(46.11, 37.02, 268.41°)
OKLaboklab(53.42% -0.0419 -0.105)
OKLCHoklch(53.42% 0.113 248.3)
XYZxyz(14.4253, 15.3533, 40.7234)
Luminance0.1535 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71AB #AB692F
analogous
#2FABA7 #2F71AB #2F33AB
triadic
#2F71AB #AB2F71 #71AB2F
tetradic
#2F71AB #A72FAB #AB692F #33AB2F
square
#2F71AB #A72FAB #AB692F #33AB2F
split-complementary
#2F71AB #AB2F33 #ABA72F
monochromatic
#15324B #22517B #2F71AB #4A90CD #7AADDA

Accessibility & contrast

On white

5.16
#2F71AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2F71AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71AB
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71AB#FFFFFF#000000##FFFFFF
##2F71AB1.005.164.075.16
#FFFFFF5.161.0021.001.00
#0000004.0721.001.0021.00
##FFFFFF5.161.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5774AD
Deuteranopia (green-blind)
#4568AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f71ab;
/* rgb */ color: rgb(47, 113, 171);
/* oklch */ color: oklch(53.4% 0.113 248.3);
Tailwind
colors: {
  custom: {
    50: '#7799c4',
    500: '#2f71ab',
    950: '#000000',
  },
}
SCSS
$custom: #2f71ab;
$custom-light: #7799c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71ab",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 208.065,
    "s": 56.881,
    "l": 42.745
  },
  "oklch": {
    "l": 0.53419,
    "c": 0.11306,
    "h": 248.3
  },
  "luminance": 0.15355
}

Semantic roles & 50–950 ramp

primary
#2F71AB
secondary
#C39873
accent
#8F48E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F71AB

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

Preview Lab → · Contrast checker → · Palette generator →

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