#2B71B1#2B71B1

#2B71B1 is a mid, vivid cyan. Relative luminance 0.155; OKLCH L 53.6% C 0.122 H 249.6°. Best body text is #FFFFFF at 5.12:1 contrast (WCAG AA passes).

Color values

HEX#2B71B1
RGBrgb(43, 113, 177)
HSLhsl(209, 61%, 43%)
HSVhsv(209, 76%, 69%)
CMYKcmyk(75.7%, 36.2%, 0%, 30.6%)
CIE-LABlab(46.31, 0.64, -40.21)
CIE-LCHlch(46.31, 40.21, 270.91°)
OKLaboklab(53.64% -0.0426 -0.1144)
OKLCHoklch(53.64% 0.122 249.6)
XYZxyz(14.8342, 15.4965, 43.7958)
Luminance0.1550 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71B1 #B16B2B
analogous
#2BB1AE #2B71B1 #2B2EB1
triadic
#2B71B1 #B12B71 #71B12B
tetradic
#2B71B1 #AE2BB1 #B16B2B #2EB12B
square
#2B71B1 #AE2BB1 #B16B2B #2EB12B
split-complementary
#2B71B1 #B12B2E #B1AE2B
monochromatic
#13324F #1F5280 #2B71B1 #4790D2 #78ADDE

Accessibility & contrast

On white

5.12
#2B71B1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.10
#2B71B1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71B1
5.12:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71B1#FFFFFF#000000##FFFFFF
##2B71B11.005.124.105.12
#FFFFFF5.121.0021.001.00
#0000004.1021.001.0021.00
##FFFFFF5.121.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5374B4
Deuteranopia (green-blind)
#4068B0
Tritanopia (blue-blind)
#008088
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2b71b1;
/* rgb */ color: rgb(43, 113, 177);
/* oklch */ color: oklch(53.6% 0.122 249.6);
Tailwind
colors: {
  custom: {
    50: '#7799c8',
    500: '#2b71b1',
    950: '#000000',
  },
}
SCSS
$custom: #2b71b1;
$custom-light: #7799c8;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71b1",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 177
  },
  "hsl": {
    "h": 208.657,
    "s": 60.909,
    "l": 43.137
  },
  "oklch": {
    "l": 0.53639,
    "c": 0.1221,
    "h": 249.6
  },
  "luminance": 0.15498
}

Semantic roles & 50–950 ramp

primary
#2B71B1
secondary
#C69A72
accent
#9044E4
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2B71B1

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

Preview Lab → · Contrast checker → · Palette generator →

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