#2F71AC#2F71AC

#2F71AC is a mid, moderate cyan. Relative luminance 0.154; OKLCH L 53.5% C 0.114 H 248.7°. Best body text is #FFFFFF at 5.15:1 contrast (WCAG AA passes).

Color values

HEX#2F71AC
RGBrgb(47, 113, 172)
HSLhsl(208, 57%, 43%)
HSVhsv(208, 73%, 67%)
CMYKcmyk(72.7%, 34.3%, 0%, 32.5%)
CIE-LABlab(46.17, -0.66, -37.51)
CIE-LCHlch(46.17, 37.51, 268.99°)
OKLaboklab(53.48% -0.0416 -0.1065)
OKLCHoklch(53.48% 0.114 248.7)
XYZxyz(14.5210, 15.3915, 41.2273)
Luminance0.1539 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71AC #AC6A2F
analogous
#2FACA8 #2F71AC #2F32AC
triadic
#2F71AC #AC2F71 #71AC2F
tetradic
#2F71AC #A82FAC #AC6A2F #32AC2F
square
#2F71AC #A82FAC #AC6A2F #32AC2F
split-complementary
#2F71AC #AC2F32 #ACA82F
monochromatic
#15324C #22517C #2F71AC #4B90CE #7BADDB

Accessibility & contrast

On white

5.15
#2F71AC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.08
#2F71AC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71AC
5.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71AC#FFFFFF#000000##FFFFFF
##2F71AC1.005.154.085.15
#FFFFFF5.151.0021.001.00
#0000004.0821.001.0021.00
##FFFFFF5.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5674AE
Deuteranopia (green-blind)
#4468AB
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2f71ac;
/* rgb */ color: rgb(47, 113, 172);
/* oklch */ color: oklch(53.5% 0.114 248.7);
Tailwind
colors: {
  custom: {
    50: '#7899c5',
    500: '#2f71ac',
    950: '#000000',
  },
}
SCSS
$custom: #2f71ac;
$custom-light: #7899c5;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71ac",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 172
  },
  "hsl": {
    "h": 208.32,
    "s": 57.078,
    "l": 42.941
  },
  "oklch": {
    "l": 0.53477,
    "c": 0.11432,
    "h": 248.7
  },
  "luminance": 0.15393
}

Semantic roles & 50–950 ramp

primary
#2F71AC
secondary
#C39974
accent
#9047E0
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2F71AC

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

Preview Lab → · Contrast checker → · Palette generator →

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