#2E4DBA#2E4DBA

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

Color values

HEX#2E4DBA
RGBrgb(46, 77, 186)
HSLhsl(227, 60%, 45%)
HSVhsv(227, 75%, 73%)
CMYKcmyk(75.3%, 58.6%, 0%, 27.1%)
CIE-LABlab(36.80, 27.61, -60.75)
CIE-LCHlch(36.80, 66.73, 294.45°)
OKLaboklab(46.56% -0.009 -0.1754)
OKLCHoklch(46.56% 0.176 267.1)
XYZxyz(12.6404, 9.4324, 47.5993)
Luminance0.0943 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E4DBA #BA9B2E
analogous
#2E93BA #2E4DBA #552EBA
triadic
#2E4DBA #BA2E4D #4DBA2E
tetradic
#2E4DBA #BA2E93 #BA9B2E #2EBA55
square
#2E4DBA #BA2E93 #BA9B2E #2EBA55
split-complementary
#2E4DBA #BA552E #93BA2E
monochromatic
#162458 #223989 #2E4DBA #516ED4 #8297E0

Accessibility & contrast

On white

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

On black

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

Best text color

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

Contrast matrix

fg \ bg##2E4DBA#FFFFFF#000000##FFFFFF
##2E4DBA1.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)
#005DBE
Deuteranopia (green-blind)
#0050B8
Tritanopia (blue-blind)
#00687C
Achromatopsia (no color)
#575757

Design tokens & code

CSS
--color: #2e4dba;
/* rgb */ color: rgb(46, 77, 186);
/* oklch */ color: oklch(46.6% 0.176 267.1);
Tailwind
colors: {
  custom: {
    50: '#7b7ed0',
    500: '#2e4dba',
    950: '#000000',
  },
}
SCSS
$custom: #2e4dba;
$custom-light: #7b7ed0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e4dba",
  "rgb": {
    "r": 46,
    "g": 77,
    "b": 186
  },
  "hsl": {
    "h": 226.714,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.4656,
    "c": 0.1756,
    "h": 267.1
  },
  "luminance": 0.09434
}

Semantic roles & 50–950 ramp

primary
#2E4DBA
secondary
#C9B87B
accent
#C044E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0914
muted
#7C7B82

Preview Lab

Preview with #2E4DBA

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

Preview Lab → · Contrast checker → · Palette generator →

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