#2E71CF#2E71CF

#2E71CF is a mid, vivid blue. Relative luminance 0.169; OKLCH L 55.6% C 0.160 H 257.7°. Best body text is #FFFFFF at 4.80:1 contrast (WCAG AA passes).

Color values

HEX#2E71CF
RGBrgb(46, 113, 207)
HSLhsl(215, 64%, 50%)
HSVhsv(215, 78%, 81%)
CMYKcmyk(77.8%, 45.4%, 0%, 18.8%)
CIE-LABlab(48.13, 12.26, -54.60)
CIE-LCHlch(48.13, 55.96, 282.66°)
OKLaboklab(55.64% -0.0341 -0.1566)
OKLCHoklch(55.64% 0.16 257.7)
XYZxyz(18.2902, 16.8939, 61.3163)
Luminance0.1690 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71CF #CF8C2E
analogous
#2EC2CF #2E71CF #3C2ECF
triadic
#2E71CF #CF2E71 #71CF2E
tetradic
#2E71CF #CF2EC2 #CF8C2E #2ECF3C
square
#2E71CF #CF2EC2 #CF8C2E #2ECF3C
split-complementary
#2E71CF #CF3C2E #C2CF2E
monochromatic
#183A6B #23569D #2E71CF #5F93DB #91B5E7

Accessibility & contrast

On white

4.80
#2E71CF on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.38
#2E71CF on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71CF
4.80:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71CF#FFFFFF#000000##FFFFFF
##2E71CF1.004.804.384.80
#FFFFFF4.801.0021.001.00
#0000004.3821.001.0021.00
##FFFFFF4.801.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3F7AD3
Deuteranopia (green-blind)
#196BCD
Tritanopia (blue-blind)
#008796
Achromatopsia (no color)
#727272

Design tokens & code

CSS
--color: #2e71cf;
/* rgb */ color: rgb(46, 113, 207);
/* oklch */ color: oklch(55.6% 0.160 257.7);
Tailwind
colors: {
  custom: {
    50: '#7e99de',
    500: '#2e71cf',
    950: '#000000',
  },
}
SCSS
$custom: #2e71cf;
$custom-light: #7e99de;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71cf",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 207
  },
  "hsl": {
    "h": 215.031,
    "s": 63.636,
    "l": 49.608
  },
  "oklch": {
    "l": 0.55641,
    "c": 0.16031,
    "h": 257.7
  },
  "luminance": 0.16896
}

Semantic roles & 50–950 ramp

primary
#2E71CF
secondary
#D1B388
accent
#A241E7
background
#F8F9FD
surface
#F0F2FB
border
#CBCCD4
text
#0C0D15
muted
#7D7E83

Preview Lab

Preview with #2E71CF

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

Preview Lab → · Contrast checker → · Palette generator →

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