#2B71A2#2B71A2

#2B71A2 is a mid, moderate cyan. Relative luminance 0.149; OKLCH L 52.8% C 0.104 H 243.0°. Best body text is #FFFFFF at 5.27:1 contrast (WCAG AA passes).

Color values

HEX#2B71A2
RGBrgb(43, 113, 162)
HSLhsl(205, 58%, 40%)
HSVhsv(205, 73%, 64%)
CMYKcmyk(73.5%, 30.2%, 0%, 36.5%)
CIE-LABlab(45.54, -4.89, -32.64)
CIE-LCHlch(45.54, 33.01, 261.47°)
OKLaboklab(52.78% -0.0471 -0.0923)
OKLCHoklch(52.78% 0.104 243)
XYZxyz(13.4205, 14.9310, 36.3501)
Luminance0.1493 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71A2 #A25C2B
analogous
#2BA298 #2B71A2 #2B35A2
triadic
#2B71A2 #A22B71 #71A22B
tetradic
#2B71A2 #982BA2 #A25C2B #35A22B
square
#2B71A2 #982BA2 #A25C2B #35A22B
split-complementary
#2B71A2 #A22B35 #A2982B
monochromatic
#112E41 #1E4F72 #2B71A2 #3E92CC #6FADD9

Accessibility & contrast

On white

5.27
#2B71A2 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.99
#2B71A2 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71A2
5.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71A2#FFFFFF#000000##FFFFFF
##2B71A21.005.273.995.27
#FFFFFF5.271.0021.001.00
#0000003.9921.001.0021.00
##FFFFFF5.271.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2b71a2;
/* rgb */ color: rgb(43, 113, 162);
/* oklch */ color: oklch(52.8% 0.104 243.0);
Tailwind
colors: {
  custom: {
    50: '#7499be',
    500: '#2b71a2',
    950: '#000000',
  },
}
SCSS
$custom: #2b71a2;
$custom-light: #7499be;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71a2",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 162
  },
  "hsl": {
    "h": 204.706,
    "s": 58.049,
    "l": 40.196
  },
  "oklch": {
    "l": 0.52783,
    "c": 0.10364,
    "h": 243
  },
  "luminance": 0.14932
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2B71A2

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

Preview Lab → · Contrast checker → · Palette generator →

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