#2E71B7#2E71B7

#2E71B7 is a mid, vivid cyan. Relative luminance 0.158; OKLCH L 54.1% C 0.129 H 252.2°. Best body text is #FFFFFF at 5.05:1 contrast (WCAG AA passes).

Color values

HEX#2E71B7
RGBrgb(46, 113, 183)
HSLhsl(211, 60%, 45%)
HSVhsv(211, 75%, 72%)
CMYKcmyk(74.9%, 38.3%, 0%, 28.2%)
CIE-LABlab(46.72, 3.26, -43.03)
CIE-LCHlch(46.72, 43.16, 274.34°)
OKLaboklab(54.1% -0.0393 -0.1227)
OKLCHoklch(54.1% 0.129 252.2)
XYZxyz(15.5759, 15.8082, 47.0210)
Luminance0.1581 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71B7 #B7742E
analogous
#2EB5B7 #2E71B7 #302EB7
triadic
#2E71B7 #B72E71 #71B72E
tetradic
#2E71B7 #B72EB5 #B7742E #2EB730
square
#2E71B7 #B72EB5 #B7742E #2EB730
split-complementary
#2E71B7 #B7302E #B5B72E
monochromatic
#153555 #225386 #2E71B7 #4F90D3 #80AFDF

Accessibility & contrast

On white

5.05
#2E71B7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.16
#2E71B7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71B7
5.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71B7#FFFFFF#000000##FFFFFF
##2E71B71.005.054.165.05
#FFFFFF5.051.0021.001.00
#0000004.1621.001.0021.00
##FFFFFF5.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5076BA
Deuteranopia (green-blind)
#3B69B6
Tritanopia (blue-blind)
#00828B
Achromatopsia (no color)
#6F6F6F

Design tokens & code

CSS
--color: #2e71b7;
/* rgb */ color: rgb(46, 113, 183);
/* oklch */ color: oklch(54.1% 0.129 252.2);
Tailwind
colors: {
  custom: {
    50: '#7999cd',
    500: '#2e71b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e71b7;
$custom-light: #7999cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71b7",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 183
  },
  "hsl": {
    "h": 210.657,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.54095,
    "c": 0.1288,
    "h": 252.2
  },
  "luminance": 0.1581
}

Semantic roles & 50–950 ramp

primary
#2E71B7
secondary
#C8A179
accent
#9645E3
background
#F8F9FC
surface
#EFF2F9
border
#CACCD2
text
#0A0D13
muted
#7C7E82

Preview Lab

Preview with #2E71B7

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

Preview Lab → · Contrast checker → · Palette generator →

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