#2B71A8#2B71A8

#2B71A8 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.1% C 0.111 H 245.9°. Best body text is #FFFFFF at 5.21:1 contrast (WCAG AA passes).

Color values

HEX#2B71A8
RGBrgb(43, 113, 168)
HSLhsl(206, 59%, 41%)
HSVhsv(206, 74%, 66%)
CMYKcmyk(74.4%, 32.7%, 0%, 34.1%)
CIE-LABlab(45.84, -2.70, -35.69)
CIE-LCHlch(45.84, 35.79, 265.68°)
OKLaboklab(53.12% -0.0452 -0.1012)
OKLCHoklch(53.12% 0.111 245.9)
XYZxyz(13.9666, 15.1494, 39.2262)
Luminance0.1515 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71A8 #A8622B
analogous
#2BA8A1 #2B71A8 #2B33A8
triadic
#2B71A8 #A82B71 #71A82B
tetradic
#2B71A8 #A12BA8 #A8622B #33A82B
square
#2B71A8 #A12BA8 #A8622B #33A82B
split-complementary
#2B71A8 #A82B33 #A8A12B
monochromatic
#122F47 #1F5077 #2B71A8 #4291CF #72ADDB

Accessibility & contrast

On white

5.21
#2B71A8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.03
#2B71A8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71A8
5.21:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71A8#FFFFFF#000000##FFFFFF
##2B71A81.005.214.035.21
#FFFFFF5.211.0021.001.00
#0000004.0321.001.0021.00
##FFFFFF5.211.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5873AA
Deuteranopia (green-blind)
#4667A7
Tritanopia (blue-blind)
#007E85
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2b71a8;
/* rgb */ color: rgb(43, 113, 168);
/* oklch */ color: oklch(53.1% 0.111 245.9);
Tailwind
colors: {
  custom: {
    50: '#7599c2',
    500: '#2b71a8',
    950: '#000000',
  },
}
SCSS
$custom: #2b71a8;
$custom-light: #7599c2;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71a8",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 168
  },
  "hsl": {
    "h": 206.4,
    "s": 59.242,
    "l": 41.373
  },
  "oklch": {
    "l": 0.53117,
    "c": 0.11085,
    "h": 245.9
  },
  "luminance": 0.15151
}

Semantic roles & 50–950 ramp

primary
#2B71A8
secondary
#C2926C
accent
#8A45E2
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2B71A8

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

Preview Lab → · Contrast checker → · Palette generator →

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