#2E4FA5#2E4FA5

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

Color values

HEX#2E4FA5
RGBrgb(46, 79, 165)
HSLhsl(223, 56%, 41%)
HSVhsv(223, 72%, 65%)
CMYKcmyk(72.1%, 52.1%, 0%, 35.3%)
CIE-LABlab(35.77, 18.38, -49.98)
CIE-LCHlch(35.77, 53.25, 290.19°)
OKLaboklab(45.28% -0.0119 -0.1437)
OKLCHoklch(45.28% 0.144 265.2)
XYZxyz(10.7118, 8.8883, 36.7411)
Luminance0.0889 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FA5 #A5842E
analogous
#2E8BA5 #2E4FA5 #492EA5
triadic
#2E4FA5 #A52E4F #4FA52E
tetradic
#2E4FA5 #A52E8B #A5842E #2EA549
square
#2E4FA5 #A52E8B #A5842E #2EA549
split-complementary
#2E4FA5 #A5492E #8BA52E
monochromatic
#132145 #213875 #2E4FA5 #456ACB #7591D8

Accessibility & contrast

On white

7.56
#2E4FA5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.78
#2E4FA5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4FA5
7.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FA5#FFFFFF#000000##FFFFFF
##2E4FA51.007.562.787.56
#FFFFFF7.561.0021.001.00
#0000002.7821.001.0021.00
##FFFFFF7.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#185AA8
Deuteranopia (green-blind)
#004FA3
Tritanopia (blue-blind)
#006472
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e4fa5;
/* rgb */ color: rgb(46, 79, 165);
/* oklch */ color: oklch(45.3% 0.144 265.2);
Tailwind
colors: {
  custom: {
    50: '#767fc0',
    500: '#2e4fa5',
    950: '#000000',
  },
}
SCSS
$custom: #2e4fa5;
$custom-light: #767fc0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4fa5",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 165
  },
  "hsl": {
    "h": 223.361,
    "s": 56.398,
    "l": 41.373
  },
  "oklch": {
    "l": 0.45282,
    "c": 0.14418,
    "h": 265.2
  },
  "luminance": 0.08889
}

Semantic roles & 50–950 ramp

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

Preview Lab

Preview with #2E4FA5

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

Preview Lab → · Contrast checker → · Palette generator →

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