#2B71B8#2B71B8

#2B71B8 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.131 H 251.9°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2B71B8
RGBrgb(43, 113, 184)
HSLhsl(210, 62%, 45%)
HSVhsv(210, 77%, 72%)
CMYKcmyk(76.6%, 38.6%, 0%, 27.8%)
CIE-LABlab(46.69, 3.26, -43.67)
CIE-LCHlch(46.69, 43.79, 274.26°)
OKLaboklab(54.06% -0.0408 -0.1246)
OKLCHoklch(54.06% 0.131 251.9)
XYZxyz(15.5499, 15.7827, 47.5649)
Luminance0.1578 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71B8 #B8722B
analogous
#2BB8B8 #2B71B8 #2C2BB8
triadic
#2B71B8 #B82B71 #71B82B
tetradic
#2B71B8 #B82BB8 #B8722B #2BB82C
square
#2B71B8 #B82BB8 #B8722B #2BB82C
split-complementary
#2B71B8 #B82C2B #B8B82B
monochromatic
#143455 #1F5386 #2B71B8 #4B90D5 #7DAEE1

Accessibility & contrast

On white

5.05
#2B71B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2B71B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71B8
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71B8#FFFFFF#000000##FFFFFF
##2B71B81.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BB
Deuteranopia (green-blind)
#3A69B7
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2b71b8;
/* rgb */ color: rgb(43, 113, 184);
/* oklch */ color: oklch(54.1% 0.131 251.9);
Tailwind
colors: {
  custom: {
    50: '#7899ce',
    500: '#2b71b8',
    950: '#000000',
  },
}
SCSS
$custom: #2b71b8;
$custom-light: #7899ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71b8",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 210.213,
    "s": 62.115,
    "l": 44.51
  },
  "oklch": {
    "l": 0.54062,
    "c": 0.13107,
    "h": 251.9
  },
  "luminance": 0.15785
}

Semantic roles & 50–950 ramp

primary
#2B71B8
secondary
#C9A076
accent
#9443E5
background
#F7F9FC
surface
#EEF2F9
border
#C9CCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2B71B8

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

Preview Lab → · Contrast checker → · Palette generator →

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