#2E4FB5#2E4FB5

#2E4FB5 is a mid, vivid blue. Relative luminance 0.095; OKLCH L 46.5% C 0.166 H 266.3°. Best body text is #FFFFFF at 7.24:1 contrast (WCAG AA passes).

Color values

HEX#2E4FB5
RGBrgb(46, 79, 181)
HSLhsl(225, 59%, 45%)
HSVhsv(225, 75%, 71%)
CMYKcmyk(74.6%, 56.4%, 0%, 29%)
CIE-LABlab(36.94, 24.43, -57.58)
CIE-LCHlch(36.94, 62.54, 292.99°)
OKLaboklab(46.54% -0.0107 -0.166)
OKLCHoklch(46.54% 0.166 266.3)
XYZxyz(12.2603, 9.5077, 44.8961)
Luminance0.0951 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4FB5 #B5942E
analogous
#2E93B5 #2E4FB5 #502EB5
triadic
#2E4FB5 #B52E4F #4FB52E
tetradic
#2E4FB5 #B52E93 #B5942E #2EB550
square
#2E4FB5 #B52E93 #B5942E #2EB550
split-complementary
#2E4FB5 #B5502E #93B52E
monochromatic
#152453 #223A84 #2E4FB5 #4E6ED2 #7F96DE

Accessibility & contrast

On white

7.24
#2E4FB5 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.90
#2E4FB5 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4FB5
7.24:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4FB5#FFFFFF#000000##FFFFFF
##2E4FB51.007.242.907.24
#FFFFFF7.241.0021.001.00
#0000002.9021.001.0021.00
##FFFFFF7.241.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DB9
Deuteranopia (green-blind)
#0051B3
Tritanopia (blue-blind)
#00687A
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e4fb5;
/* rgb */ color: rgb(46, 79, 181);
/* oklch */ color: oklch(46.5% 0.166 266.3);
Tailwind
colors: {
  custom: {
    50: '#7a7fcc',
    500: '#2e4fb5',
    950: '#000000',
  },
}
SCSS
$custom: #2e4fb5;
$custom-light: #7a7fcc;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4fb5",
  "rgb": {
    "r": 46,
    "g": 79,
    "b": 181
  },
  "hsl": {
    "h": 225.333,
    "s": 59.471,
    "l": 44.51
  },
  "oklch": {
    "l": 0.46543,
    "c": 0.16636,
    "h": 266.3
  },
  "luminance": 0.09509
}

Semantic roles & 50–950 ramp

primary
#2E4FB5
secondary
#C7B478
accent
#BC45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2E4FB5

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

Preview Lab → · Contrast checker → · Palette generator →

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