#2E71B5#2E71B5

#2E71B5 is a mid, vivid cyan. Relative luminance 0.157; OKLCH L 54.0% C 0.126 H 251.6°. Best body text is #FFFFFF at 5.07:1 contrast (WCAG AA passes).

Color values

HEX#2E71B5
RGBrgb(46, 113, 181)
HSLhsl(210, 59%, 45%)
HSVhsv(210, 75%, 71%)
CMYKcmyk(74.6%, 37.6%, 0%, 29%)
CIE-LABlab(46.61, 2.52, -42.05)
CIE-LCHlch(46.61, 42.12, 273.43°)
OKLaboklab(53.97% -0.0398 -0.1198)
OKLCHoklch(53.97% 0.126 251.6)
XYZxyz(15.3692, 15.7255, 45.9324)
Luminance0.1573 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71B5 #B5722E
analogous
#2EB5B5 #2E71B5 #2F2EB5
triadic
#2E71B5 #B52E71 #71B52E
tetradic
#2E71B5 #B52EB5 #B5722E #2EB52F
square
#2E71B5 #B52EB5 #B5722E #2EB52F
split-complementary
#2E71B5 #B52F2E #B5B52E
monochromatic
#153453 #225384 #2E71B5 #4E90D2 #7FAEDE

Accessibility & contrast

On white

5.07
#2E71B5 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.15
#2E71B5 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71B5
5.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71B5#FFFFFF#000000##FFFFFF
##2E71B51.005.074.155.07
#FFFFFF5.071.0021.001.00
#0000004.1521.001.0021.00
##FFFFFF5.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5175B8
Deuteranopia (green-blind)
#3D69B4
Tritanopia (blue-blind)
#00818A
Achromatopsia (no color)
#6E6E6E

Design tokens & code

CSS
--color: #2e71b5;
/* rgb */ color: rgb(46, 113, 181);
/* oklch */ color: oklch(54.0% 0.126 251.6);
Tailwind
colors: {
  custom: {
    50: '#7999cb',
    500: '#2e71b5',
    950: '#000000',
  },
}
SCSS
$custom: #2e71b5;
$custom-light: #7999cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71b5",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 181
  },
  "hsl": {
    "h": 210.222,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.53974,
    "c": 0.1262,
    "h": 251.6
  },
  "luminance": 0.15727
}

Semantic roles & 50–950 ramp

primary
#2E71B5
secondary
#C7A078
accent
#9445E3
background
#F7F9FC
surface
#EEF2F8
border
#C9CCD1
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2E71B5

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

Preview Lab → · Contrast checker → · Palette generator →

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