#2F71A5#2F71A5

#2F71A5 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.1% C 0.106 H 245.6°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2F71A5
RGBrgb(47, 113, 165)
HSLhsl(206, 56%, 42%)
HSVhsv(206, 72%, 65%)
CMYKcmyk(71.5%, 31.5%, 0%, 35.3%)
CIE-LABlab(45.81, -3.21, -33.97)
CIE-LCHlch(45.81, 34.12, 264.60°)
OKLaboklab(53.08% -0.0437 -0.0961)
OKLCHoklch(53.08% 0.106 245.6)
XYZxyz(13.8664, 15.1297, 37.7795)
Luminance0.1513 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71A5 #A5632F
analogous
#2FA59E #2F71A5 #2F36A5
triadic
#2F71A5 #A52F71 #71A52F
tetradic
#2F71A5 #9E2FA5 #A5632F #36A52F
square
#2F71A5 #9E2FA5 #A5632F #36A52F
split-complementary
#2F71A5 #A52F36 #A59E2F
monochromatic
#143046 #215075 #2F71A5 #4790CB #76ADD8

Accessibility & contrast

On white

5.22
#2F71A5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2F71A5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71A5
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71A5#FFFFFF#000000##FFFFFF
##2F71A51.005.224.035.22
#FFFFFF5.221.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5973A7
Deuteranopia (green-blind)
#4967A4
Tritanopia (blue-blind)
#007E83
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f71a5;
/* rgb */ color: rgb(47, 113, 165);
/* oklch */ color: oklch(53.1% 0.106 245.6);
Tailwind
colors: {
  custom: {
    50: '#7699c0',
    500: '#2f71a5',
    950: '#000000',
  },
}
SCSS
$custom: #2f71a5;
$custom-light: #7699c0;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71a5",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 165
  },
  "hsl": {
    "h": 206.441,
    "s": 55.66,
    "l": 41.569
  },
  "oklch": {
    "l": 0.53082,
    "c": 0.10561,
    "h": 245.6
  },
  "luminance": 0.15131
}

Semantic roles & 50–950 ramp

primary
#2F71A5
secondary
#C09370
accent
#8B49DF
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2F71A5

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

Preview Lab → · Contrast checker → · Palette generator →

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