#2F71A1#2F71A1

#2F71A1 is a mid, moderate cyan. Relative luminance 0.150; OKLCH L 52.9% C 0.101 H 243.5°. Best body text is #FFFFFF at 5.25:1 contrast (WCAG AA passes).

Color values

HEX#2F71A1
RGBrgb(47, 113, 161)
HSLhsl(205, 55%, 41%)
HSVhsv(205, 71%, 63%)
CMYKcmyk(70.8%, 29.8%, 0%, 36.9%)
CIE-LABlab(45.62, -4.66, -31.92)
CIE-LCHlch(45.62, 32.26, 261.70°)
OKLaboklab(52.86% -0.0449 -0.0902)
OKLCHoklch(52.86% 0.101 243.5)
XYZxyz(13.5080, 14.9863, 35.8921)
Luminance0.1499 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2F71A1 #A15F2F
analogous
#2FA198 #2F71A1 #2F38A1
triadic
#2F71A1 #A12F71 #71A12F
tetradic
#2F71A1 #982FA1 #A15F2F #38A12F
square
#2F71A1 #982FA1 #A15F2F #38A12F
split-complementary
#2F71A1 #A12F38 #A1982F
monochromatic
#132F42 #215072 #2F71A1 #4591C9 #74ADD6

Accessibility & contrast

On white

5.25
#2F71A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.00
#2F71A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2F71A1
5.25:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2F71A1#FFFFFF#000000##FFFFFF
##2F71A11.005.254.005.25
#FFFFFF5.251.0021.001.00
#0000004.0021.001.0021.00
##FFFFFF5.251.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A3
Deuteranopia (green-blind)
#4C67A0
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2f71a1;
/* rgb */ color: rgb(47, 113, 161);
/* oklch */ color: oklch(52.9% 0.101 243.5);
Tailwind
colors: {
  custom: {
    50: '#7699bd',
    500: '#2f71a1',
    950: '#000000',
  },
}
SCSS
$custom: #2f71a1;
$custom-light: #7699bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2f71a1",
  "rgb": {
    "r": 47,
    "g": 113,
    "b": 161
  },
  "hsl": {
    "h": 205.263,
    "s": 54.808,
    "l": 40.784
  },
  "oklch": {
    "l": 0.52863,
    "c": 0.10079,
    "h": 243.5
  },
  "luminance": 0.14988
}

Semantic roles & 50–950 ramp

primary
#2F71A1
secondary
#BE906E
accent
#884ADE
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2F71A1

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

Preview Lab → · Contrast checker → · Palette generator →

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