#2B71B4#2B71B4

#2B71B4 is a mid, vivid cyan. Relative luminance 0.156; OKLCH L 53.8% C 0.126 H 250.6°. Best body text is #FFFFFF at 5.09:1 contrast (WCAG AA passes).

Color values

HEX#2B71B4
RGBrgb(43, 113, 180)
HSLhsl(209, 61%, 44%)
HSVhsv(209, 76%, 71%)
CMYKcmyk(76.1%, 37.2%, 0%, 29.4%)
CIE-LABlab(46.47, 1.76, -41.70)
CIE-LCHlch(46.47, 41.73, 272.41°)
OKLaboklab(53.82% -0.0418 -0.1188)
OKLCHoklch(53.82% 0.126 250.6)
XYZxyz(15.1365, 15.6174, 45.3879)
Luminance0.1562 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71B4 #B46E2B
analogous
#2BB4B2 #2B71B4 #2B2CB4
triadic
#2B71B4 #B42B71 #71B42B
tetradic
#2B71B4 #B22BB4 #B46E2B #2CB42B
square
#2B71B4 #B22BB4 #B46E2B #2CB42B
split-complementary
#2B71B4 #B42B2C #B4B22B
monochromatic
#133351 #1F5283 #2B71B4 #4990D3 #7AAEDF

Accessibility & contrast

On white

5.09
#2B71B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.12
#2B71B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71B4
5.09:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71B4#FFFFFF#000000##FFFFFF
##2B71B41.005.094.125.09
#FFFFFF5.091.0021.001.00
#0000004.1221.001.0021.00
##FFFFFF5.091.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B7
Deuteranopia (green-blind)
#3D68B3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2b71b4;
/* rgb */ color: rgb(43, 113, 180);
/* oklch */ color: oklch(53.8% 0.126 250.6);
Tailwind
colors: {
  custom: {
    50: '#7899cb',
    500: '#2b71b4',
    950: '#000000',
  },
}
SCSS
$custom: #2b71b4;
$custom-light: #7899cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71b4",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 209.343,
    "s": 61.435,
    "l": 43.725
  },
  "oklch": {
    "l": 0.53818,
    "c": 0.12593,
    "h": 250.6
  },
  "luminance": 0.15619
}

Semantic roles & 50–950 ramp

primary
#2B71B4
secondary
#C79C73
accent
#9243E5
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2B71B4

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

Preview Lab → · Contrast checker → · Palette generator →

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