#2E4FA7#2E4FA7

#2E4FA7 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.4% C 0.147 H 265.4°. Best body text is #FFFFFF at 7.52:1 contrast (WCAG AA passes).

Color values

HEX#2E4FA7
RGBrgb(46, 79, 167)
HSLhsl(224, 57%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(72.5%, 52.7%, 0%, 34.5%)
CIE-LABlab(35.91, 19.13, -50.95)
CIE-LCHlch(35.91, 54.42, 290.58°)
OKLaboklab(45.44% -0.0117 -0.1465)
OKLCHoklch(45.44% 0.147 265.4)
XYZxyz(10.8953, 8.9617, 37.7073)
Luminance0.0896 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FA7 #A7862E
analogous
#2E8CA7 #2E4FA7 #492EA7
triadic
#2E4FA7 #A72E4F #4FA72E
tetradic
#2E4FA7 #A72E8C #A7862E #2EA749
square
#2E4FA7 #A72E8C #A7862E #2EA749
split-complementary
#2E4FA7 #A7492E #8CA72E
monochromatic
#142247 #213877 #2E4FA7 #466BCC #7691D9

Accessibility & contrast

On white

7.52
#2E4FA7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.79
#2E4FA7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4FA7
7.52:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FA7#FFFFFF#000000##FFFFFF
##2E4FA71.007.522.797.52
#FFFFFF7.521.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.521.0021.001.00

Color blindness preview

Protanopia (red-blind)
#155AAA
Deuteranopia (green-blind)
#004FA5
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e4fa7;
/* rgb */ color: rgb(46, 79, 167);
/* oklch */ color: oklch(45.4% 0.147 265.4);
Tailwind
colors: {
  custom: {
    50: '#777fc2',
    500: '#2e4fa7',
    950: '#000000',
  },
}
SCSS
$custom: #2e4fa7;
$custom-light: #777fc2;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4fa7",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 167
  },
  "hsl": {
    "h": 223.636,
    "s": 56.808,
    "l": 41.765
  },
  "oklch": {
    "l": 0.45436,
    "c": 0.14699,
    "h": 265.4
  },
  "luminance": 0.08963
}

Semantic roles & 50–950 ramp

primary
#2E4FA7
secondary
#C1AB70
accent
#B748E0
background
#F7F7FC
surface
#EEEEF8
border
#C9C9D1
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E4FA7

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

Preview Lab → · Contrast checker → · Palette generator →

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