#2B71C0#2B71C0

#2B71C0 is a mid, vivid cyan. Relative luminance 0.161; OKLCH L 54.6% C 0.141 H 254.0°. Best body text is #FFFFFF at 4.97:1 contrast (WCAG AA passes).

Color values

HEX#2B71C0
RGBrgb(43, 113, 192)
HSLhsl(212, 63%, 46%)
HSVhsv(212, 78%, 75%)
CMYKcmyk(77.6%, 41.1%, 0%, 24.7%)
CIE-LABlab(47.14, 6.27, -47.57)
CIE-LCHlch(47.14, 47.98, 277.50°)
OKLaboklab(54.56% -0.0389 -0.136)
OKLCHoklch(54.56% 0.141 254)
XYZxyz(16.4123, 16.1277, 52.1069)
Luminance0.1613 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71C0 #C07A2B
analogous
#2BBBC0 #2B71C0 #2F2BC0
triadic
#2B71C0 #C02B71 #71C02B
tetradic
#2B71C0 #C02BBB #C07A2B #2BC02F
square
#2B71C0 #C02BBB #C07A2B #2BC02F
split-complementary
#2B71C0 #C02F2B #BBC02B
monochromatic
#15365C #20548E #2B71C0 #5090D8 #82B0E3

Accessibility & contrast

On white

4.97
#2B71C0 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.23
#2B71C0 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71C0
4.97:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71C0#FFFFFF#000000##FFFFFF
##2B71C01.004.974.234.97
#FFFFFF4.971.0021.001.00
#0000004.2321.001.0021.00
##FFFFFF4.971.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4B77C3
Deuteranopia (green-blind)
#316ABE
Tritanopia (blue-blind)
#00848F
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2b71c0;
/* rgb */ color: rgb(43, 113, 192);
/* oklch */ color: oklch(54.6% 0.141 254.0);
Tailwind
colors: {
  custom: {
    50: '#7a99d3',
    500: '#2b71c0',
    950: '#000000',
  },
}
SCSS
$custom: #2b71c0;
$custom-light: #7a99d3;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71c0",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 192
  },
  "hsl": {
    "h": 211.812,
    "s": 63.404,
    "l": 46.078
  },
  "oklch": {
    "l": 0.54563,
    "c": 0.14148,
    "h": 254
  },
  "luminance": 0.1613
}

Semantic roles & 50–950 ramp

primary
#2B71C0
secondary
#CCA67B
accent
#9941E6
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2B71C0

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

Preview Lab → · Contrast checker → · Palette generator →

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