#2B71A1#2B71A1

#2B71A1 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.7% C 0.102 H 242.5°. Best body text is #FFFFFF at 5.28:1 contrast (WCAG AA passes).

Color values

HEX#2B71A1
RGBrgb(43, 113, 161)
HSLhsl(204, 58%, 40%)
HSVhsv(204, 73%, 63%)
CMYKcmyk(73.3%, 29.8%, 0%, 36.9%)
CIE-LABlab(45.49, -5.26, -32.13)
CIE-LCHlch(45.49, 32.56, 260.71°)
OKLaboklab(52.73% -0.0474 -0.0908)
OKLCHoklch(52.73% 0.102 242.5)
XYZxyz(13.3319, 14.8956, 35.8838)
Luminance0.1490 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71A1 #A15B2B
analogous
#2BA196 #2B71A1 #2B36A1
triadic
#2B71A1 #A12B71 #71A12B
tetradic
#2B71A1 #962BA1 #A15B2B #36A12B
square
#2B71A1 #962BA1 #A15B2B #36A12B
split-complementary
#2B71A1 #A12B36 #A1962B
monochromatic
#112D40 #1E4F71 #2B71A1 #3E92CB #6EADD8

Accessibility & contrast

On white

5.28
#2B71A1 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.98
#2B71A1 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71A1
5.28:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71A1#FFFFFF#000000##FFFFFF
##2B71A11.005.283.985.28
#FFFFFF5.281.0021.001.00
#0000003.9821.001.0021.00
##FFFFFF5.281.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5B72A3
Deuteranopia (green-blind)
#4B67A0
Tritanopia (blue-blind)
#007D82
Achromatopsia (no color)
#6C6C6C

Design tokens & code

CSS
--color: #2b71a1;
/* rgb */ color: rgb(43, 113, 161);
/* oklch */ color: oklch(52.7% 0.102 242.5);
Tailwind
colors: {
  custom: {
    50: '#7499bd',
    500: '#2b71a1',
    950: '#000000',
  },
}
SCSS
$custom: #2b71a1;
$custom-light: #7499bd;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71a1",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 161
  },
  "hsl": {
    "h": 204.407,
    "s": 57.843,
    "l": 40
  },
  "oklch": {
    "l": 0.52729,
    "c": 0.10247,
    "h": 242.5
  },
  "luminance": 0.14897
}

Semantic roles & 50–950 ramp

primary
#2B71A1
secondary
#BF8C69
accent
#8647E1
background
#F7F9FB
surface
#EEF2F6
border
#C9CCD0
text
#090D12
muted
#7B7E81

Preview Lab

Preview with #2B71A1

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

Preview Lab → · Contrast checker → · Palette generator →

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