#2B71AB#2B71AB

#2B71AB is a mid, moderate cyan. Relative luminance 0.153; OKLCH L 53.3% C 0.115 H 247.2°. Best body text is #FFFFFF at 5.18:1 contrast (WCAG AA passes).

Color values

HEX#2B71AB
RGBrgb(43, 113, 171)
HSLhsl(207, 60%, 42%)
HSVhsv(207, 75%, 67%)
CMYKcmyk(74.9%, 33.9%, 0%, 32.9%)
CIE-LABlab(45.99, -1.59, -37.21)
CIE-LCHlch(45.99, 37.24, 267.55°)
OKLaboklab(53.29% -0.0443 -0.1056)
OKLCHoklch(53.29% 0.115 247.2)
XYZxyz(14.2493, 15.2625, 40.7152)
Luminance0.1526 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71AB #AB652B
analogous
#2BABA5 #2B71AB #2B31AB
triadic
#2B71AB #AB2B71 #71AB2B
tetradic
#2B71AB #A52BAB #AB652B #31AB2B
square
#2B71AB #A52BAB #AB652B #31AB2B
split-complementary
#2B71AB #AB2B31 #ABA52B
monochromatic
#123049 #1F517A #2B71AB #4390D0 #74ADDC

Accessibility & contrast

On white

5.18
#2B71AB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.05
#2B71AB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71AB
5.18:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71AB#FFFFFF#000000##FFFFFF
##2B71AB1.005.184.055.18
#FFFFFF5.181.0021.001.00
#0000004.0521.001.0021.00
##FFFFFF5.181.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5673AD
Deuteranopia (green-blind)
#4468AA
Tritanopia (blue-blind)
#007F86
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b71ab;
/* rgb */ color: rgb(43, 113, 171);
/* oklch */ color: oklch(53.3% 0.115 247.2);
Tailwind
colors: {
  custom: {
    50: '#7699c4',
    500: '#2b71ab',
    950: '#000000',
  },
}
SCSS
$custom: #2b71ab;
$custom-light: #7699c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71ab",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 171
  },
  "hsl": {
    "h": 207.188,
    "s": 59.813,
    "l": 41.961
  },
  "oklch": {
    "l": 0.53288,
    "c": 0.11456,
    "h": 247.2
  },
  "luminance": 0.15264
}

Semantic roles & 50–950 ramp

primary
#2B71AB
secondary
#C4956E
accent
#8C45E3
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2B71AB

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

Preview Lab → · Contrast checker → · Palette generator →

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