#2E71D4#2E71D4

#2E71D4 is a mid, vivid blue. Relative luminance 0.171; OKLCH L 56.0% C 0.167 H 258.5°. Best body text is #FFFFFF at 4.74:1 contrast (WCAG AA passes).

Color values

HEX#2E71D4
RGBrgb(46, 113, 212)
HSLhsl(216, 66%, 51%)
HSVhsv(216, 78%, 83%)
CMYKcmyk(78.3%, 46.7%, 0%, 16.9%)
CIE-LABlab(48.44, 14.14, -56.94)
CIE-LCHlch(48.44, 58.67, 283.95°)
OKLaboklab(55.98% -0.0333 -0.1635)
OKLCHoklch(55.98% 0.167 258.5)
XYZxyz(18.9112, 17.1423, 64.5867)
Luminance0.1714 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71D4 #D4912E
analogous
#2EC4D4 #2E71D4 #3E2ED4
triadic
#2E71D4 #D42E71 #71D42E
tetradic
#2E71D4 #D42EC4 #D4912E #2ED43E
square
#2E71D4 #D42EC4 #D4912E #2ED43E
split-complementary
#2E71D4 #D43E2E #C4D42E
monochromatic
#173B70 #2256A3 #2E71D4 #6193DE #94B6E9

Accessibility & contrast

On white

4.74
#2E71D4 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.43
#2E71D4 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71D4
4.74:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71D4#FFFFFF#000000##FFFFFF
##2E71D41.004.744.434.74
#FFFFFF4.741.0021.001.00
#0000004.4321.001.0021.00
##FFFFFF4.741.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3B7BD8
Deuteranopia (green-blind)
#076CD2
Tritanopia (blue-blind)
#008998
Achromatopsia (no color)
#737373

Design tokens & code

CSS
--color: #2e71d4;
/* rgb */ color: rgb(46, 113, 212);
/* oklch */ color: oklch(56.0% 0.167 258.5);
Tailwind
colors: {
  custom: {
    50: '#7f99e2',
    500: '#2e71d4',
    950: '#000000',
  },
}
SCSS
$custom: #2e71d4;
$custom-light: #7f99e2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71d4",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 212
  },
  "hsl": {
    "h": 215.783,
    "s": 65.873,
    "l": 50.588
  },
  "oklch": {
    "l": 0.55982,
    "c": 0.16688,
    "h": 258.5
  },
  "luminance": 0.17145
}

Semantic roles & 50–950 ramp

primary
#2E71D4
secondary
#D4B68A
accent
#A43FE9
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2E71D4

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

Preview Lab → · Contrast checker → · Palette generator →

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