#2771AF#2771AF

#2771AF is a mid, vivid cyan. Relative luminance 0.153; OKLCH L 53.4% C 0.121 H 248.0°. Best body text is #FFFFFF at 5.16:1 contrast (WCAG AA passes).

Color values

HEX#2771AF
RGBrgb(39, 113, 175)
HSLhsl(207, 64%, 42%)
HSVhsv(207, 78%, 69%)
CMYKcmyk(77.7%, 35.4%, 0%, 31.4%)
CIE-LABlab(46.09, -0.61, -39.39)
CIE-LCHlch(46.09, 39.40, 269.12°)
OKLaboklab(53.4% -0.0454 -0.1121)
OKLCHoklch(53.4% 0.121 248)
XYZxyz(14.4767, 15.3350, 42.7461)
Luminance0.1534 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2771AF #AF6527
analogous
#27AFA9 #2771AF #272DAF
triadic
#2771AF #AF2771 #71AF27
tetradic
#2771AF #A927AF #AF6527 #2DAF27
square
#2771AF #A927AF #AF6527 #2DAF27
split-complementary
#2771AF #AF272D #AFA927
monochromatic
#11304B #1C517D #2771AF #3F90D4 #71ADDF

Accessibility & contrast

On white

5.16
#2771AF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.07
#2771AF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2771AF
5.16:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2771AF#FFFFFF#000000##FFFFFF
##2771AF1.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)
#5474B2
Deuteranopia (green-blind)
#4068AE
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2771af;
/* rgb */ color: rgb(39, 113, 175);
/* oklch */ color: oklch(53.4% 0.121 248.0);
Tailwind
colors: {
  custom: {
    50: '#7599c7',
    500: '#2771af',
    950: '#000000',
  },
}
SCSS
$custom: #2771af;
$custom-light: #7599c7;
$custom-dark: #000000;
JSON
{
  "hex": "#2771af",
  "rgb": {
    "r": 39,
    "g": 113,
    "b": 175
  },
  "hsl": {
    "h": 207.353,
    "s": 63.551,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53402,
    "c": 0.12092,
    "h": 248
  },
  "luminance": 0.15337
}

Semantic roles & 50–950 ramp

primary
#2771AF
secondary
#C6956B
accent
#8D41E7
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2771AF

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

Preview Lab → · Contrast checker → · Palette generator →

#2771AF Color — HEX, RGB, HSL, OKLCH & Contrast — Tintiva