#2E5BAB#2E5BAB

#2E5BAB is a mid, vivid blue. Relative luminance 0.110; OKLCH L 48.3% C 0.138 H 260.9°. Best body text is #FFFFFF at 6.56:1 contrast (WCAG AA passes).

Color values

HEX#2E5BAB
RGBrgb(46, 91, 171)
HSLhsl(218, 58%, 43%)
HSVhsv(218, 73%, 67%)
CMYKcmyk(73.1%, 46.8%, 0%, 32.9%)
CIE-LABlab(39.58, 12.74, -47.41)
CIE-LCHlch(39.58, 49.09, 285.04°)
OKLaboklab(48.33% -0.0217 -0.1359)
OKLCHoklch(48.33% 0.138 260.9)
XYZxyz(12.2158, 11.0020, 40.0000)
Luminance0.1100 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E5BAB #AB7E2E
analogous
#2E9AAB #2E5BAB #3F2EAB
triadic
#2E5BAB #AB2E5B #5BAB2E
tetradic
#2E5BAB #AB2E9A #AB7E2E #2EAB3F
square
#2E5BAB #AB2E9A #AB7E2E #2EAB3F
split-complementary
#2E5BAB #AB3F2E #9AAB2E
monochromatic
#14284B #21417B #2E5BAB #4878CE #799CDB

Accessibility & contrast

On white

6.56
#2E5BAB on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.20
#2E5BAB on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E5BAB
6.56:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E5BAB#FFFFFF#000000##FFFFFF
##2E5BAB1.006.563.206.56
#FFFFFF6.561.0021.001.00
#0000003.2021.001.0021.00
##FFFFFF6.561.0021.001.00

Color blindness preview

Protanopia (red-blind)
#3163AE
Deuteranopia (green-blind)
#1458A9
Tritanopia (blue-blind)
#006E7A
Achromatopsia (no color)
#5D5D5D

Design tokens & code

CSS
--color: #2e5bab;
/* rgb */ color: rgb(46, 91, 171);
/* oklch */ color: oklch(48.3% 0.138 260.9);
Tailwind
colors: {
  custom: {
    50: '#7788c4',
    500: '#2e5bab',
    950: '#000000',
  },
}
SCSS
$custom: #2e5bab;
$custom-light: #7788c4;
$custom-dark: #000000;
JSON
{
  "hex": "#2e5bab",
  "rgb": {
    "r": 46,
    "g": 91,
    "b": 171
  },
  "hsl": {
    "h": 218.4,
    "s": 57.604,
    "l": 42.549
  },
  "oklch": {
    "l": 0.48328,
    "c": 0.13762,
    "h": 260.9
  },
  "luminance": 0.11003
}

Semantic roles & 50–950 ramp

primary
#2E5BAB
secondary
#C3A672
accent
#A947E1
background
#F7F8FC
surface
#EEEFF8
border
#C9CAD1
text
#0A0B13
muted
#7C7C82

Preview Lab

Preview with #2E5BAB

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

Preview Lab → · Contrast checker → · Palette generator →

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