#2E4FA4#2E4FA4

#2E4FA4 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.2% C 0.143 H 265.2°. Best body text is #FFFFFF at 7.58:1 contrast (WCAG AA passes).

Color values

HEX#2E4FA4
RGBrgb(46, 79, 164)
HSLhsl(223, 56%, 41%)
HSVhsv(223, 72%, 64%)
CMYKcmyk(72%, 51.8%, 0%, 35.7%)
CIE-LABlab(35.70, 18.00, -49.50)
CIE-LCHlch(35.70, 52.67, 289.98°)
OKLaboklab(45.21% -0.0121 -0.1423)
OKLCHoklch(45.21% 0.143 265.2)
XYZxyz(10.6212, 8.8520, 36.2636)
Luminance0.0885 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FA4 #A4832E
analogous
#2E8AA4 #2E4FA4 #482EA4
triadic
#2E4FA4 #A42E4F #4FA42E
tetradic
#2E4FA4 #A42E8A #A4832E #2EA448
square
#2E4FA4 #A42E8A #A4832E #2EA448
split-complementary
#2E4FA4 #A4482E #8AA42E
monochromatic
#132144 #213874 #2E4FA4 #456ACB #7490D8

Accessibility & contrast

On white

7.58
#2E4FA4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.77
#2E4FA4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4FA4
7.58:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FA4#FFFFFF#000000##FFFFFF
##2E4FA41.007.582.777.58
#FFFFFF7.581.0021.001.00
#0000002.7721.001.0021.00
##FFFFFF7.581.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1A5AA7
Deuteranopia (green-blind)
#004FA2
Tritanopia (blue-blind)
#006372
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e4fa4;
/* rgb */ color: rgb(46, 79, 164);
/* oklch */ color: oklch(45.2% 0.143 265.2);
Tailwind
colors: {
  custom: {
    50: '#767fc0',
    500: '#2e4fa4',
    950: '#000000',
  },
}
SCSS
$custom: #2e4fa4;
$custom-light: #767fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4fa4",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 164
  },
  "hsl": {
    "h": 223.22,
    "s": 56.19,
    "l": 41.176
  },
  "oklch": {
    "l": 0.45206,
    "c": 0.14277,
    "h": 265.2
  },
  "luminance": 0.08853
}

Semantic roles & 50–950 ramp

primary
#2E4FA4
secondary
#C0A96E
accent
#B548DF
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E4FA4

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

Preview Lab → · Contrast checker → · Palette generator →

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