#2E4EB7#2E4EB7

#2E4EB7 is a mid, vivid blue. Relative luminance 0.094; OKLCH L 46.5% C 0.170 H 266.7°. Best body text is #FFFFFF at 7.27:1 contrast (WCAG AA passes).

Color values

HEX#2E4EB7
RGBrgb(46, 78, 183)
HSLhsl(226, 60%, 45%)
HSVhsv(226, 75%, 72%)
CMYKcmyk(74.9%, 57.4%, 0%, 28.2%)
CIE-LABlab(36.83, 25.84, -58.94)
CIE-LCHlch(36.83, 64.35, 293.67°)
OKLaboklab(46.51% -0.0098 -0.17)
OKLCHoklch(46.51% 0.17 266.7)
XYZxyz(12.3954, 9.4472, 45.9608)
Luminance0.0945 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4EB7 #B7972E
analogous
#2E93B7 #2E4EB7 #522EB7
triadic
#2E4EB7 #B72E4E #4EB72E
tetradic
#2E4EB7 #B72E93 #B7972E #2EB752
square
#2E4EB7 #B72E93 #B7972E #2EB752
split-complementary
#2E4EB7 #B7522E #93B72E
monochromatic
#152455 #223986 #2E4EB7 #4F6ED3 #8096DF

Accessibility & contrast

On white

7.27
#2E4EB7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.89
#2E4EB7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4EB7
7.27:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4EB7#FFFFFF#000000##FFFFFF
##2E4EB71.007.272.897.27
#FFFFFF7.271.0021.001.00
#0000002.8921.001.0021.00
##FFFFFF7.271.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBB
Deuteranopia (green-blind)
#0051B5
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e4eb7;
/* rgb */ color: rgb(46, 78, 183);
/* oklch */ color: oklch(46.5% 0.170 266.7);
Tailwind
colors: {
  custom: {
    50: '#7a7fcd',
    500: '#2e4eb7',
    950: '#000000',
  },
}
SCSS
$custom: #2e4eb7;
$custom-light: #7a7fcd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4eb7",
  "rgb": {
    "r": 46,
    "g": 78,
    "b": 183
  },
  "hsl": {
    "h": 225.985,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.46507,
    "c": 0.17032,
    "h": 266.7
  },
  "luminance": 0.09449
}

Semantic roles & 50–950 ramp

primary
#2E4EB7
secondary
#C8B679
accent
#BE45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E4EB7

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

Preview Lab → · Contrast checker → · Palette generator →

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