#2E51B2#2E51B2

#2E51B2 is a mid, vivid blue. Relative luminance 0.097; OKLCH L 46.7% C 0.160 H 265.5°. Best body text is #FFFFFF at 7.15:1 contrast (WCAG AA passes).

Color values

HEX#2E51B2
RGBrgb(46, 81, 178)
HSLhsl(224, 59%, 44%)
HSVhsv(224, 74%, 70%)
CMYKcmyk(74.2%, 54.5%, 0%, 30.2%)
CIE-LABlab(37.26, 21.98, -55.30)
CIE-LCHlch(37.26, 59.50, 291.67°)
OKLaboklab(46.71% -0.0124 -0.1593)
OKLCHoklch(46.71% 0.16 265.5)
XYZxyz(12.1022, 9.6787, 43.3412)
Luminance0.0968 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51B2 #B28F2E
analogous
#2E93B2 #2E51B2 #4D2EB2
triadic
#2E51B2 #B22E51 #51B22E
tetradic
#2E51B2 #B22E93 #B28F2E #2EB24D
square
#2E51B2 #B22E93 #B28F2E #2EB24D
split-complementary
#2E51B2 #B24D2E #93B22E
monochromatic
#152551 #213B81 #2E51B2 #4C6FD1 #7D97DD

Accessibility & contrast

On white

7.15
#2E51B2 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.94
#2E51B2 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51B2
7.15:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51B2#FFFFFF#000000##FFFFFF
##2E51B21.007.152.947.15
#FFFFFF7.151.0021.001.00
#0000002.9421.001.0021.00
##FFFFFF7.151.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB5
Deuteranopia (green-blind)
#0052B0
Tritanopia (blue-blind)
#006979
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e51b2;
/* rgb */ color: rgb(46, 81, 178);
/* oklch */ color: oklch(46.7% 0.160 265.5);
Tailwind
colors: {
  custom: {
    50: '#7981ca',
    500: '#2e51b2',
    950: '#000000',
  },
}
SCSS
$custom: #2e51b2;
$custom-light: #7981ca;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51b2",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 178
  },
  "hsl": {
    "h": 224.091,
    "s": 58.929,
    "l": 43.922
  },
  "oklch": {
    "l": 0.4671,
    "c": 0.15976,
    "h": 265.5
  },
  "luminance": 0.0968
}

Semantic roles & 50–950 ramp

primary
#2E51B2
secondary
#C6B176
accent
#B946E2
background
#F8F7FC
surface
#EFEEF8
border
#CAC9D1
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E51B2

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

Preview Lab → · Contrast checker → · Palette generator →

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