#2E4FA6#2E4FA6

#2E4FA6 is a mid, vivid blue. Relative luminance 0.089; OKLCH L 45.4% C 0.146 H 265.3°. Best body text is #FFFFFF at 7.54:1 contrast (WCAG AA passes).

Color values

HEX#2E4FA6
RGBrgb(46, 79, 166)
HSLhsl(224, 57%, 42%)
HSVhsv(224, 72%, 65%)
CMYKcmyk(72.3%, 52.4%, 0%, 34.9%)
CIE-LABlab(35.84, 18.75, -50.47)
CIE-LCHlch(35.84, 53.84, 290.39°)
OKLaboklab(45.36% -0.0118 -0.1451)
OKLCHoklch(45.36% 0.146 265.3)
XYZxyz(10.8032, 8.9249, 37.2223)
Luminance0.0893 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FA6 #A6852E
analogous
#2E8BA6 #2E4FA6 #492EA6
triadic
#2E4FA6 #A62E4F #4FA62E
tetradic
#2E4FA6 #A62E8B #A6852E #2EA649
square
#2E4FA6 #A62E8B #A6852E #2EA649
split-complementary
#2E4FA6 #A6492E #8BA62E
monochromatic
#132146 #213876 #2E4FA6 #466ACC #7691D9

Accessibility & contrast

On white

7.54
#2E4FA6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E4FA6
7.54:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FA6#FFFFFF#000000##FFFFFF
##2E4FA61.007.542.797.54
#FFFFFF7.541.0021.001.00
#0000002.7921.001.0021.00
##FFFFFF7.541.0021.001.00

Color blindness preview

Protanopia (red-blind)
#175AA9
Deuteranopia (green-blind)
#004FA4
Tritanopia (blue-blind)
#006473
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e4fa6;
/* rgb */ color: rgb(46, 79, 166);
/* oklch */ color: oklch(45.4% 0.146 265.3);
Tailwind
colors: {
  custom: {
    50: '#777fc1',
    500: '#2e4fa6',
    950: '#000000',
  },
}
SCSS
$custom: #2e4fa6;
$custom-light: #777fc1;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4fa6",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 166
  },
  "hsl": {
    "h": 223.5,
    "s": 56.604,
    "l": 41.569
  },
  "oklch": {
    "l": 0.45359,
    "c": 0.14558,
    "h": 265.3
  },
  "luminance": 0.08926
}

Semantic roles & 50–950 ramp

primary
#2E4FA6
secondary
#C1AA6F
accent
#B648E0
background
#F7F7FB
surface
#EEEEF7
border
#C9C9D0
text
#0A0A12
muted
#7C7C81

Preview Lab

Preview with #2E4FA6

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

Preview Lab → · Contrast checker → · Palette generator →

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