#2E4DB8#2E4DB8

#2E4DB8 is a mid, vivid blue. Relative luminance 0.093; OKLCH L 46.4% C 0.173 H 267.0°. Best body text is #FFFFFF at 7.32:1 contrast (WCAG AA passes).

Color values

HEX#2E4DB8
RGBrgb(46, 77, 184)
HSLhsl(227, 60%, 45%)
HSVhsv(227, 75%, 72%)
CMYKcmyk(75%, 58.2%, 0%, 27.8%)
CIE-LABlab(36.65, 26.87, -59.83)
CIE-LCHlch(36.65, 65.59, 294.18°)
OKLaboklab(46.39% -0.0091 -0.1727)
OKLCHoklch(46.39% 0.173 267)
XYZxyz(12.4293, 9.3479, 46.4874)
Luminance0.0935 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4DB8 #B8992E
analogous
#2E92B8 #2E4DB8 #542EB8
triadic
#2E4DB8 #B82E4D #4DB82E
tetradic
#2E4DB8 #B82E92 #B8992E #2EB854
square
#2E4DB8 #B82E92 #B8992E #2EB854
split-complementary
#2E4DB8 #B8542E #92B82E
monochromatic
#162456 #223987 #2E4DB8 #506DD3 #8196DF

Accessibility & contrast

On white

7.32
#2E4DB8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.87
#2E4DB8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E4DB8
7.32:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E4DB8#FFFFFF#000000##FFFFFF
##2E4DB81.007.322.877.32
#FFFFFF7.321.0021.001.00
#0000002.8721.001.0021.00
##FFFFFF7.321.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005DBC
Deuteranopia (green-blind)
#0050B6
Tritanopia (blue-blind)
#00687B
Achromatopsia (no color)
#565656

Design tokens & code

CSS
--color: #2e4db8;
/* rgb */ color: rgb(46, 77, 184);
/* oklch */ color: oklch(46.4% 0.173 267.0);
Tailwind
colors: {
  custom: {
    50: '#7b7ece',
    500: '#2e4db8',
    950: '#000000',
  },
}
SCSS
$custom: #2e4db8;
$custom-light: #7b7ece;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4db8",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 184
  },
  "hsl": {
    "h": 226.522,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.46392,
    "c": 0.17291,
    "h": 267
  },
  "luminance": 0.09349
}

Semantic roles & 50–950 ramp

primary
#2E4DB8
secondary
#C8B779
accent
#C045E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2E4DB8

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

Preview Lab → · Contrast checker → · Palette generator →

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