#2E51B8#2E51B8

#2E51B8 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.2% C 0.168 H 265.9°. Best body text is #FFFFFF at 7.03:1 contrast (WCAG AA passes).

Color values

HEX#2E51B8
RGBrgb(46, 81, 184)
HSLhsl(225, 60%, 45%)
HSVhsv(225, 75%, 72%)
CMYKcmyk(75%, 56%, 0%, 27.8%)
CIE-LABlab(37.71, 24.24, -58.10)
CIE-LCHlch(37.71, 62.96, 292.64°)
OKLaboklab(47.19% -0.012 -0.1675)
OKLCHoklch(47.19% 0.168 265.9)
XYZxyz(12.7178, 9.9250, 46.5836)
Luminance0.0993 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51B8 #B8952E
analogous
#2E96B8 #2E51B8 #502EB8
triadic
#2E51B8 #B82E51 #51B82E
tetradic
#2E51B8 #B82E96 #B8952E #2EB850
square
#2E51B8 #B82E96 #B8952E #2EB850
split-complementary
#2E51B8 #B8502E #96B82E
monochromatic
#162656 #223B87 #2E51B8 #5071D3 #8199DF

Accessibility & contrast

On white

7.03
#2E51B8 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.99
#2E51B8 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51B8
7.03:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51B8#FFFFFF#000000##FFFFFF
##2E51B81.007.032.997.03
#FFFFFF7.031.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.031.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBC
Deuteranopia (green-blind)
#0053B6
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e51b8;
/* rgb */ color: rgb(46, 81, 184);
/* oklch */ color: oklch(47.2% 0.168 265.9);
Tailwind
colors: {
  custom: {
    50: '#7b81ce',
    500: '#2e51b8',
    950: '#000000',
  },
}
SCSS
$custom: #2e51b8;
$custom-light: #7b81ce;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51b8",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 184
  },
  "hsl": {
    "h": 224.783,
    "s": 60,
    "l": 45.098
  },
  "oklch": {
    "l": 0.47189,
    "c": 0.16796,
    "h": 265.9
  },
  "luminance": 0.09926
}

Semantic roles & 50–950 ramp

primary
#2E51B8
secondary
#C8B479
accent
#BB45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E51B8

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

Preview Lab → · Contrast checker → · Palette generator →

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