#2E71B8#2E71B8

#2E71B8 is a mid, vivid cyan. Relative luminance 0.159; OKLCH L 54.2% C 0.130 H 252.5°. Best body text is #FFFFFF at 5.04:1 contrast (WCAG AA passes).

Color values

HEX#2E71B8
RGBrgb(46, 113, 184)
HSLhsl(211, 60%, 45%)
HSVhsv(211, 75%, 72%)
CMYKcmyk(75%, 38.6%, 0%, 27.8%)
CIE-LABlab(46.78, 3.64, -43.52)
CIE-LCHlch(46.78, 43.68, 274.77°)
OKLaboklab(54.16% -0.039 -0.1241)
OKLCHoklch(54.16% 0.13 252.5)
XYZxyz(15.6803, 15.8500, 47.5711)
Luminance0.1585 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71B8 #B8752E
analogous
#2EB6B8 #2E71B8 #302EB8
triadic
#2E71B8 #B82E71 #71B82E
tetradic
#2E71B8 #B82EB6 #B8752E #2EB830
square
#2E71B8 #B82EB6 #B8752E #2EB830
split-complementary
#2E71B8 #B8302E #B6B82E
monochromatic
#163556 #225387 #2E71B8 #5090D3 #81AFDF

Accessibility & contrast

On white

5.04
#2E71B8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.17
#2E71B8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71B8
5.04:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71B8#FFFFFF#000000##FFFFFF
##2E71B81.005.044.175.04
#FFFFFF5.041.0021.001.00
#0000004.1721.001.0021.00
##FFFFFF5.041.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e71b8;
/* rgb */ color: rgb(46, 113, 184);
/* oklch */ color: oklch(54.2% 0.130 252.5);
Tailwind
colors: {
  custom: {
    50: '#7999ce',
    500: '#2e71b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e71b8;
$custom-light: #7999ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71b8",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 184
  },
  "hsl": {
    "h": 210.87,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.54157,
    "c": 0.13009,
    "h": 252.5
  },
  "luminance": 0.15852
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E71B8

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

Preview Lab → · Contrast checker → · Palette generator →

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