#2B71C4#2B71C4

#2B71C4 is a mid, vivid cyan. Relative luminance 0.163; OKLCH L 54.8% C 0.147 H 255.0°. Best body text is #FFFFFF at 4.93:1 contrast (WCAG AA passes).

Color values

HEX#2B71C4
RGBrgb(43, 113, 196)
HSLhsl(213, 64%, 47%)
HSVhsv(213, 78%, 77%)
CMYKcmyk(78.1%, 42.3%, 0%, 23.1%)
CIE-LABlab(47.38, 7.78, -49.50)
CIE-LCHlch(47.38, 50.11, 278.93°)
OKLaboklab(54.82% -0.038 -0.1417)
OKLCHoklch(54.82% 0.147 255)
XYZxyz(16.8615, 16.3074, 54.4728)
Luminance0.1631 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71C4 #C47E2B
analogous
#2BBEC4 #2B71C4 #312BC4
triadic
#2B71C4 #C42B71 #71C42B
tetradic
#2B71C4 #C42BBE #C47E2B #2BC431
square
#2B71C4 #C42BBE #C47E2B #2BC431
split-complementary
#2B71C4 #C4312B #BEC42B
monochromatic
#153760 #205492 #2B71C4 #5390D9 #85B1E4

Accessibility & contrast

On white

4.93
#2B71C4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.26
#2B71C4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71C4
4.93:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71C4#FFFFFF#000000##FFFFFF
##2B71C41.004.934.264.93
#FFFFFF4.931.0021.001.00
#0000004.2621.001.0021.00
##FFFFFF4.931.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4878C7
Deuteranopia (green-blind)
#2C6AC2
Tritanopia (blue-blind)
#008591
Achromatopsia (no color)
#707070

Design tokens & code

CSS
--color: #2b71c4;
/* rgb */ color: rgb(43, 113, 196);
/* oklch */ color: oklch(54.8% 0.147 255.0);
Tailwind
colors: {
  custom: {
    50: '#7b99d6',
    500: '#2b71c4',
    950: '#000000',
  },
}
SCSS
$custom: #2b71c4;
$custom-light: #7b99d6;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71c4",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 196
  },
  "hsl": {
    "h": 212.549,
    "s": 64.017,
    "l": 46.863
  },
  "oklch": {
    "l": 0.5482,
    "c": 0.14671,
    "h": 255
  },
  "luminance": 0.16309
}

Semantic roles & 50–950 ramp

primary
#2B71C4
secondary
#CEA97D
accent
#9B41E7
background
#F8F9FD
surface
#EFF2FA
border
#CACCD3
text
#0B0D14
muted
#7C7E83

Preview Lab

Preview with #2B71C4

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

Preview Lab → · Contrast checker → · Palette generator →

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