#2B71BA#2B71BA

#2B71BA is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.134 H 252.4°. Best body text is #FFFFFF at 5.03:1 contrast (WCAG AA passes).

Color values

HEX#2B71BA
RGBrgb(43, 113, 186)
HSLhsl(211, 62%, 45%)
HSVhsv(211, 77%, 73%)
CMYKcmyk(76.9%, 39.2%, 0%, 27.1%)
CIE-LABlab(46.80, 4.01, -44.65)
CIE-LCHlch(46.80, 44.83, 275.13°)
OKLaboklab(54.19% -0.0403 -0.1274)
OKLCHoklch(54.19% 0.134 252.4)
XYZxyz(15.7610, 15.8672, 48.6769)
Luminance0.1587 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71BA #BA742B
analogous
#2BB9BA #2B71BA #2C2BBA
triadic
#2B71BA #BA2B71 #71BA2B
tetradic
#2B71BA #BA2BB9 #BA742B #2BBA2C
square
#2B71BA #BA2BB9 #BA742B #2BBA2C
split-complementary
#2B71BA #BA2C2B #B9BA2B
monochromatic
#143557 #205388 #2B71BA #4C90D6 #7EAFE1

Accessibility & contrast

On white

5.03
#2B71BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2B71BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71BA
5.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71BA#FFFFFF#000000##FFFFFF
##2B71BA1.005.034.175.03
#FFFFFF5.031.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4E76BD
Deuteranopia (green-blind)
#3869B9
Tritanopia (blue-blind)
#00828C
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b71ba;
/* rgb */ color: rgb(43, 113, 186);
/* oklch */ color: oklch(54.2% 0.134 252.4);
Tailwind
colors: {
  custom: {
    50: '#7999cf',
    500: '#2b71ba',
    950: '#000000',
  },
}
SCSS
$custom: #2b71ba;
$custom-light: #7999cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71ba",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 186
  },
  "hsl": {
    "h": 210.629,
    "s": 62.445,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54185,
    "c": 0.13366,
    "h": 252.4
  },
  "luminance": 0.15869
}

Semantic roles & 50–950 ramp

primary
#2B71BA
secondary
#CAA177
accent
#9642E6
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D14
muted
#7C7E82

Preview Lab

Preview with #2B71BA

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

Preview Lab → · Contrast checker → · Palette generator →

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