#2B71A7#2B71A7

#2B71A7 is a mid, moderate cyan. Relative luminance 0.151; OKLCH L 53.1% C 0.110 H 245.5°. Best body text is #FFFFFF at 5.22:1 contrast (WCAG AA passes).

Color values

HEX#2B71A7
RGBrgb(43, 113, 167)
HSLhsl(206, 59%, 41%)
HSVhsv(206, 74%, 65%)
CMYKcmyk(74.3%, 32.3%, 0%, 34.5%)
CIE-LABlab(45.79, -3.06, -35.19)
CIE-LCHlch(45.79, 35.32, 265.02°)
OKLaboklab(53.06% -0.0455 -0.0997)
OKLCHoklch(53.06% 0.11 245.5)
XYZxyz(13.8738, 15.1123, 38.7375)
Luminance0.1511 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71A7 #A7612B
analogous
#2BA79F #2B71A7 #2B33A7
triadic
#2B71A7 #A72B71 #71A72B
tetradic
#2B71A7 #9F2BA7 #A7612B #33A72B
square
#2B71A7 #9F2BA7 #A7612B #33A72B
split-complementary
#2B71A7 #A72B33 #A79F2B
monochromatic
#122F46 #1E5076 #2B71A7 #4191CE #72ADDB

Accessibility & contrast

On white

5.22
#2B71A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.02
#2B71A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71A7
5.22:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71A7#FFFFFF#000000##FFFFFF
##2B71A71.005.224.025.22
#FFFFFF5.221.0021.001.00
#0000004.0221.001.0021.00
##FFFFFF5.221.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5873A9
Deuteranopia (green-blind)
#4767A6
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2b71a7;
/* rgb */ color: rgb(43, 113, 167);
/* oklch */ color: oklch(53.1% 0.110 245.5);
Tailwind
colors: {
  custom: {
    50: '#7599c1',
    500: '#2b71a7',
    950: '#000000',
  },
}
SCSS
$custom: #2b71a7;
$custom-light: #7599c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71a7",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 206.129,
    "s": 59.048,
    "l": 41.176
  },
  "oklch": {
    "l": 0.53061,
    "c": 0.10964,
    "h": 245.5
  },
  "luminance": 0.15114
}

Semantic roles & 50–950 ramp

primary
#2B71A7
secondary
#C2916C
accent
#8A46E2
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2B71A7

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

Preview Lab → · Contrast checker → · Palette generator →

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