#2E71B4#2E71B4

#2E71B4 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 53.9% C 0.125 H 251.3°. Best body text is #FFFFFF at 5.08:1 contrast (WCAG AA passes).

Color values

HEX#2E71B4
RGBrgb(46, 113, 180)
HSLhsl(210, 59%, 44%)
HSVhsv(210, 74%, 71%)
CMYKcmyk(74.4%, 37.2%, 0%, 29.4%)
CIE-LABlab(46.56, 2.15, -41.55)
CIE-LCHlch(46.56, 41.61, 272.96°)
OKLaboklab(53.91% -0.04 -0.1183)
OKLCHoklch(53.91% 0.125 251.3)
XYZxyz(15.2670, 15.6847, 45.3940)
Luminance0.1569 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71B4 #B4712E
analogous
#2EB4B4 #2E71B4 #2E2EB4
triadic
#2E71B4 #B42E71 #71B42E
tetradic
#2E71B4 #B42EB4 #B4712E #2EB42E
square
#2E71B4 #B42EB4 #B4712E #2EB42E
split-complementary
#2E71B4 #B42E2E #B4B42E
monochromatic
#153453 #225283 #2E71B4 #4E90D2 #7EAEDE

Accessibility & contrast

On white

5.08
#2E71B4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.14
#2E71B4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71B4
5.08:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71B4#FFFFFF#000000##FFFFFF
##2E71B41.005.084.145.08
#FFFFFF5.081.0021.001.00
#0000004.1421.001.0021.00
##FFFFFF5.081.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5275B7
Deuteranopia (green-blind)
#3E69B3
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2e71b4;
/* rgb */ color: rgb(46, 113, 180);
/* oklch */ color: oklch(53.9% 0.125 251.3);
Tailwind
colors: {
  custom: {
    50: '#7999cb',
    500: '#2e71b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e71b4;
$custom-light: #7999cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71b4",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 180
  },
  "hsl": {
    "h": 210,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.53914,
    "c": 0.12491,
    "h": 251.3
  },
  "luminance": 0.15686
}

Semantic roles & 50–950 ramp

primary
#2E71B4
secondary
#C79F77
accent
#9445E2
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2E71B4

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

Preview Lab → · Contrast checker → · Palette generator →

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