#2E4AB9#2E4AB9

#2E4AB9 is a mid, vivid blue. Relative luminance 0.090; OKLCH L 45.9% C 0.178 H 267.8°. Best body text is #FFFFFF at 7.51:1 contrast (WCAG AA passes).

Color values

HEX#2E4AB9
RGBrgb(46, 74, 185)
HSLhsl(228, 60%, 45%)
HSVhsv(228, 75%, 73%)
CMYKcmyk(75.1%, 60%, 0%, 27.5%)
CIE-LABlab(35.95, 29.20, -61.56)
CIE-LCHlch(35.95, 68.14, 295.38°)
OKLaboklab(45.9% -0.0069 -0.1778)
OKLCHoklch(45.9% 0.178 267.8)
XYZxyz(12.3294, 8.9798, 46.9730)
Luminance0.0898 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4AB9 #B99D2E
analogous
#2E8FB9 #2E4AB9 #582EB9
triadic
#2E4AB9 #B92E4A #4AB92E
tetradic
#2E4AB9 #B92E8F #B99D2E #2EB958
square
#2E4AB9 #B92E8F #B99D2E #2EB958
split-complementary
#2E4AB9 #B9582E #8FB92E
monochromatic
#162357 #223688 #2E4AB9 #516BD4 #8295E0

Accessibility & contrast

On white

7.51
#2E4AB9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.80
#2E4AB9 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4AB9
7.51:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4AB9#FFFFFF#000000##FFFFFF
##2E4AB91.007.512.807.51
#FFFFFF7.511.0021.001.00
#0000002.8021.001.0021.00
##FFFFFF7.511.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005BBD
Deuteranopia (green-blind)
#004EB7
Tritanopia (blue-blind)
#00667A
Achromatopsia (no color)
#555555

Design tokens & code

CSS
--color: #2e4ab9;
/* rgb */ color: rgb(46, 74, 185);
/* oklch */ color: oklch(45.9% 0.178 267.8);
Tailwind
colors: {
  custom: {
    50: '#7b7ccf',
    500: '#2e4ab9',
    950: '#000000',
  },
}
SCSS
$custom: #2e4ab9;
$custom-light: #7b7ccf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4ab9",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 185
  },
  "hsl": {
    "h": 227.914,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.45895,
    "c": 0.17792,
    "h": 267.8
  },
  "luminance": 0.08981
}

Semantic roles & 50–950 ramp

primary
#2E4AB9
secondary
#C9B97A
accent
#C344E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2E4AB9

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

Preview Lab → · Contrast checker → · Palette generator →

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