#2E71A7#2E71A7

#2E71A7 is a mid, moderate cyan. Relative luminance 0.152; OKLCH L 53.2% C 0.108 H 246.2°. Best body text is #FFFFFF at 5.20:1 contrast (WCAG AA passes).

Color values

HEX#2E71A7
RGBrgb(46, 113, 167)
HSLhsl(207, 57%, 42%)
HSVhsv(207, 72%, 65%)
CMYKcmyk(72.5%, 32.3%, 0%, 34.5%)
CIE-LABlab(45.88, -2.64, -35.04)
CIE-LCHlch(45.88, 35.13, 265.70°)
OKLaboklab(53.16% -0.0437 -0.0993)
OKLCHoklch(53.16% 0.108 246.2)
XYZxyz(14.0042, 15.1796, 38.7436)
Luminance0.1518 (WCAG relative)
Temperaturecool
Familycyan

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E71A7 #A7642E
analogous
#2EA7A1 #2E71A7 #2E34A7
triadic
#2E71A7 #A72E71 #71A72E
tetradic
#2E71A7 #A12EA7 #A7642E #34A72E
square
#2E71A7 #A12EA7 #A7642E #34A72E
split-complementary
#2E71A7 #A72E34 #A7A12E
monochromatic
#143047 #215177 #2E71A7 #4690CC #76ADD9

Accessibility & contrast

On white

5.20
#2E71A7 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

4.04
#2E71A7 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E71A7
5.20:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E71A7#FFFFFF#000000##FFFFFF
##2E71A71.005.204.045.20
#FFFFFF5.201.0021.001.00
#0000004.0421.001.0021.00
##FFFFFF5.201.0021.001.00

Color blindness preview

Protanopia (red-blind)
#5973A9
Deuteranopia (green-blind)
#4867A6
Tritanopia (blue-blind)
#007E84
Achromatopsia (no color)
#6D6D6D

Design tokens & code

CSS
--color: #2e71a7;
/* rgb */ color: rgb(46, 113, 167);
/* oklch */ color: oklch(53.2% 0.108 246.2);
Tailwind
colors: {
  custom: {
    50: '#7699c1',
    500: '#2e71a7',
    950: '#000000',
  },
}
SCSS
$custom: #2e71a7;
$custom-light: #7699c1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e71a7",
  "rgb": {
    "r": 46,
    "g": 113,
    "b": 167
  },
  "hsl": {
    "h": 206.777,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.53159,
    "c": 0.10847,
    "h": 246.2
  },
  "luminance": 0.15181
}

Semantic roles & 50–950 ramp

primary
#2E71A7
secondary
#C19470
accent
#8C48E0
background
#F7F9FB
surface
#EEF2F7
border
#C9CCD0
text
#0A0D12
muted
#7C7E81

Preview Lab

Preview with #2E71A7

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

Preview Lab → · Contrast checker → · Palette generator →

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