#2E71D3#2E71D3

#2E71D3 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 55.9% C 0.166 H 258.3°. Best body text is #FFFFFF at 4.75:1 contrast (WCAG AA passes).

Color values

HEX#2E71D3
RGBrgb(46, 113, 211)
HSLhsl(216, 65%, 50%)
HSVhsv(216, 78%, 83%)
CMYKcmyk(78.2%, 46.4%, 0%, 17.3%)
CIE-LABlab(48.38, 13.77, -56.48)
CIE-LCHlch(48.38, 58.13, 283.70°)
OKLaboklab(55.91% -0.0334 -0.1622)
OKLCHoklch(55.91% 0.166 258.3)
XYZxyz(18.7854, 17.0920, 63.9244)
Luminance0.1709 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71D3 #D3902E
analogous
#2EC4D3 #2E71D3 #3D2ED3
triadic
#2E71D3 #D32E71 #71D32E
tetradic
#2E71D3 #D32EC4 #D3902E #2ED33D
square
#2E71D3 #D32EC4 #D3902E #2ED33D
split-complementary
#2E71D3 #D33D2E #C4D32E
monochromatic
#173B6F #2256A2 #2E71D3 #6193DE #93B6E8

Accessibility & contrast

On white

4.75
#2E71D3 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.42
#2E71D3 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71D3
4.75:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71D3#FFFFFF#000000##FFFFFF
##2E71D31.004.754.424.75
#FFFFFF4.751.0021.001.00
#0000004.4221.001.0021.00
##FFFFFF4.751.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3C7BD7
Deuteranopia (green-blind)
#0C6CD1
Tritanopia (blue-blind)
#008898
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2e71d3;
/* rgb */ color: rgb(46, 113, 211);
/* oklch */ color: oklch(55.9% 0.166 258.3);
Tailwind
colors: {
  custom: {
    50: '#7f99e1',
    500: '#2e71d3',
    950: '#000000',
  },
}
SCSS
$custom: #2e71d3;
$custom-light: #7f99e1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71d3",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 211
  },
  "hsl": {
    "h": 215.636,
    "s": 65.217,
    "l": 50.392
  },
  "oklch": {
    "l": 0.55914,
    "c": 0.16557,
    "h": 258.3
  },
  "luminance": 0.17094
}

Semantic roles & 50–950 ramp

primary
#2E71D3
secondary
#D3B58A
accent
#A440E8
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2E71D3

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

Preview Lab → · Contrast checker → · Palette generator →

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