#2E5AB8#2E5AB8

#2E5AB8 is a mid, vivid blue. Relative luminance 0.114; OKLCH L 49.1% C 0.157 H 263.0°. Best body text is #FFFFFF at 6.42:1 contrast (WCAG AA passes).

Color values

HEX#2E5AB8
RGBrgb(46, 90, 184)
HSLhsl(221, 60%, 45%)
HSVhsv(221, 75%, 72%)
CMYKcmyk(75%, 51.1%, 0%, 27.8%)
CIE-LABlab(40.17, 18.33, -54.12)
CIE-LCHlch(40.17, 57.14, 288.71°)
OKLaboklab(49.05% -0.019 -0.1557)
OKLCHoklch(49.05% 0.157 263)
XYZxyz(13.4315, 11.3524, 46.8215)
Luminance0.1135 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5AB8 #B88C2E
analogous
#2E9FB8 #2E5AB8 #472EB8
triadic
#2E5AB8 #B82E5A #5AB82E
tetradic
#2E5AB8 #B82E9F #B88C2E #2EB847
square
#2E5AB8 #B82E9F #B88C2E #2EB847
split-complementary
#2E5AB8 #B8472E #9FB82E
monochromatic
#162A56 #224287 #2E5AB8 #507AD3 #819FDF

Accessibility & contrast

On white

6.42
#2E5AB8 on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.27
#2E5AB8 on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5AB8
6.42:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5AB8#FFFFFF#000000##FFFFFF
##2E5AB81.006.423.276.42
#FFFFFF6.421.0021.001.00
#0000003.2721.001.0021.00
##FFFFFF6.421.0021.001.00

Color blindness preview

Protanopia (red-blind)
#1F65BB
Deuteranopia (green-blind)
#0059B6
Tritanopia (blue-blind)
#007180
Achromatopsia (no color)
#5F5F5F

Design tokens & code

CSS
--color: #2e5ab8;
/* rgb */ color: rgb(46, 90, 184);
/* oklch */ color: oklch(49.1% 0.157 263.0);
Tailwind
colors: {
  custom: {
    50: '#7a88ce',
    500: '#2e5ab8',
    950: '#000000',
  },
}
SCSS
$custom: #2e5ab8;
$custom-light: #7a88ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5ab8",
  "rgb": {
    "r": 46,
    "g": 90,
    "b": 184
  },
  "hsl": {
    "h": 220.87,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.49052,
    "c": 0.15682,
    "h": 263
  },
  "luminance": 0.11354
}

Semantic roles & 50–950 ramp

primary
#2E5AB8
secondary
#C8AF79
accent
#B145E3
background
#F8F8FC
surface
#EFEFF9
border
#CACAD2
text
#0B0B14
muted
#7C7C82

Preview Lab

Preview with #2E5AB8

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

Preview Lab → · Contrast checker → · Palette generator →

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