#2E51B9#2E51B9

#2E51B9 is a mid, vivid blue. Relative luminance 0.100; OKLCH L 47.3% C 0.169 H 266.0°. Best body text is #FFFFFF at 7.01:1 contrast (WCAG AA passes).

Color values

HEX#2E51B9
RGBrgb(46, 81, 185)
HSLhsl(225, 60%, 45%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(75.1%, 56.2%, 0%, 27.5%)
CIE-LABlab(37.78, 24.62, -58.57)
CIE-LCHlch(37.78, 63.53, 292.80°)
OKLaboklab(47.27% -0.0119 -0.1689)
OKLCHoklch(47.27% 0.169 266)
XYZxyz(12.8230, 9.9671, 47.1376)
Luminance0.0997 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51B9 #B9962E
analogous
#2E96B9 #2E51B9 #502EB9
triadic
#2E51B9 #B92E51 #51B92E
tetradic
#2E51B9 #B92E96 #B9962E #2EB950
square
#2E51B9 #B92E96 #B9962E #2EB950
split-complementary
#2E51B9 #B9502E #96B92E
monochromatic
#162657 #223C88 #2E51B9 #5172D4 #8299E0

Accessibility & contrast

On white

7.01
#2E51B9 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

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

Best text color

#FFFFFF on #2E51B9
7.01:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51B9#FFFFFF#000000##FFFFFF
##2E51B91.007.012.997.01
#FFFFFF7.011.0021.001.00
#0000002.9921.001.0021.00
##FFFFFF7.011.0021.001.00

Color blindness preview

Protanopia (red-blind)
#0060BD
Deuteranopia (green-blind)
#0053B7
Tritanopia (blue-blind)
#006B7D
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e51b9;
/* rgb */ color: rgb(46, 81, 185);
/* oklch */ color: oklch(47.3% 0.169 266.0);
Tailwind
colors: {
  custom: {
    50: '#7b81cf',
    500: '#2e51b9',
    950: '#000000',
  },
}
SCSS
$custom: #2e51b9;
$custom-light: #7b81cf;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51b9",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 185
  },
  "hsl": {
    "h": 224.892,
    "s": 60.173,
    "l": 45.294
  },
  "oklch": {
    "l": 0.4727,
    "c": 0.16932,
    "h": 266
  },
  "luminance": 0.09968
}

Semantic roles & 50–950 ramp

primary
#2E51B9
secondary
#C9B57A
accent
#BB44E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E51B9

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

Preview Lab → · Contrast checker → · Palette generator →

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