#2B71CC#2B71CC

#2B71CC is a mid, vivid cyan. Relative luminance 0.167; OKLCH L 55.3% C 0.157 H 256.6°. Best body text is #FFFFFF at 4.84:1 contrast (WCAG AA passes).

Color values

HEX#2B71CC
RGBrgb(43, 113, 204)
HSLhsl(214, 65%, 48%)
HSVhsv(214, 79%, 80%)
CMYKcmyk(78.9%, 44.6%, 0%, 20%)
CIE-LABlab(47.86, 10.80, -53.32)
CIE-LCHlch(47.86, 54.40, 281.45°)
OKLaboklab(55.35% -0.0364 -0.1529)
OKLCHoklch(55.35% 0.157 256.6)
XYZxyz(17.7964, 16.6814, 59.3969)
Luminance0.1668 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2B71CC #CC862B
analogous
#2BC1CC #2B71CC #352BCC
triadic
#2B71CC #CC2B71 #71CC2B
tetradic
#2B71CC #CC2BC1 #CC862B #2BCC35
square
#2B71CC #CC2BC1 #CC862B #2BCC35
split-complementary
#2B71CC #CC352B #C1CC2B
monochromatic
#163967 #205599 #2B71CC #5892DC #8BB3E7

Accessibility & contrast

On white

4.84
#2B71CC on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.34
#2B71CC on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2B71CC
4.84:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2B71CC#FFFFFF#000000##FFFFFF
##2B71CC1.004.844.344.84
#FFFFFF4.841.0021.001.00
#0000004.3421.001.0021.00
##FFFFFF4.841.0021.001.00

Color blindness preview

Protanopia (red-blind)
#4279CF
Deuteranopia (green-blind)
#1F6BCA
Tritanopia (blue-blind)
#008794
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2b71cc;
/* rgb */ color: rgb(43, 113, 204);
/* oklch */ color: oklch(55.3% 0.157 256.6);
Tailwind
colors: {
  custom: {
    50: '#7d99dc',
    500: '#2b71cc',
    950: '#000000',
  },
}
SCSS
$custom: #2b71cc;
$custom-light: #7d99dc;
$custom-dark: #000000;
JSON
{
  "hex": "#2b71cc",
  "rgb": {
    "r": 43,
    "g": 113,
    "b": 204
  },
  "hsl": {
    "h": 213.913,
    "s": 65.182,
    "l": 48.431
  },
  "oklch": {
    "l": 0.55348,
    "c": 0.15719,
    "h": 256.6
  },
  "luminance": 0.16683
}

Semantic roles & 50–950 ramp

primary
#2B71CC
secondary
#D0AE82
accent
#9F40E8
background
#F8F9FD
surface
#EFF2FB
border
#CACCD4
text
#0B0D15
muted
#7C7E83

Preview Lab

Preview with #2B71CC

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

Preview Lab → · Contrast checker → · Palette generator →

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