#2E4AB7#2E4AB7

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

Color values

HEX#2E4AB7
RGBrgb(46, 74, 183)
HSLhsl(228, 60%, 45%)
HSVhsv(228, 75%, 72%)
CMYKcmyk(74.9%, 59.6%, 0%, 28.2%)
CIE-LABlab(35.78, 28.46, -60.65)
CIE-LCHlch(35.78, 66.99, 295.14°)
OKLaboklab(45.72% -0.0069 -0.1751)
OKLCHoklch(45.72% 0.175 267.7)
XYZxyz(12.1198, 8.8960, 45.8689)
Luminance0.0890 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4AB7 #B79B2E
analogous
#2E8FB7 #2E4AB7 #562EB7
triadic
#2E4AB7 #B72E4A #4AB72E
tetradic
#2E4AB7 #B72E8F #B79B2E #2EB756
square
#2E4AB7 #B72E8F #B79B2E #2EB756
split-complementary
#2E4AB7 #B7562E #8FB72E
monochromatic
#152255 #223686 #2E4AB7 #4F6AD3 #8094DF

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E4AB7#FFFFFF#000000##FFFFFF
##2E4AB71.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)
#005BBB
Deuteranopia (green-blind)
#004EB5
Tritanopia (blue-blind)
#006579
Achromatopsia (no color)
#545454

Design tokens & code

CSS
--color: #2e4ab7;
/* rgb */ color: rgb(46, 74, 183);
/* oklch */ color: oklch(45.7% 0.175 267.7);
Tailwind
colors: {
  custom: {
    50: '#7b7ccd',
    500: '#2e4ab7',
    950: '#000000',
  },
}
SCSS
$custom: #2e4ab7;
$custom-light: #7b7ccd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4ab7",
  "rgb": {
    "r": 46,
    "g": 74,
    "b": 183
  },
  "hsl": {
    "h": 227.737,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.45723,
    "c": 0.17525,
    "h": 267.7
  },
  "luminance": 0.08897
}

Semantic roles & 50–950 ramp

primary
#2E4AB7
secondary
#C8B879
accent
#C345E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2E4AB7

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

Preview Lab → · Contrast checker → · Palette generator →

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