#2E51BA#2E51BA

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

Color values

HEX#2E51BA
RGBrgb(46, 81, 186)
HSLhsl(225, 60%, 45%)
HSVhsv(225, 75%, 73%)
CMYKcmyk(75.3%, 56.5%, 0%, 27.1%)
CIE-LABlab(37.86, 24.99, -59.03)
CIE-LCHlch(37.86, 64.10, 292.95°)
OKLaboklab(47.35% -0.0119 -0.1703)
OKLCHoklch(47.35% 0.171 266)
XYZxyz(12.9290, 10.0095, 47.6955)
Luminance0.1001 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51BA #BA972E
analogous
#2E97BA #2E51BA #512EBA
triadic
#2E51BA #BA2E51 #51BA2E
tetradic
#2E51BA #BA2E97 #BA972E #2EBA51
square
#2E51BA #BA2E97 #BA972E #2EBA51
split-complementary
#2E51BA #BA512E #97BA2E
monochromatic
#162658 #223C89 #2E51BA #5172D4 #829AE0

Accessibility & contrast

On white

6.99
#2E51BA on #FFFFFF
AA ✓AA large ✓AAA ✗

On black

3.00
#2E51BA on #000000
AA ✗AA large ✓AAA ✗

Best text color

#FFFFFF on #2E51BA
6.99:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51BA#FFFFFF#000000##FFFFFF
##2E51BA1.006.993.006.99
#FFFFFF6.991.0021.001.00
#0000003.0021.001.0021.00
##FFFFFF6.991.0021.001.00

Color blindness preview

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

Design tokens & code

CSS
--color: #2e51ba;
/* rgb */ color: rgb(46, 81, 186);
/* oklch */ color: oklch(47.4% 0.171 266.0);
Tailwind
colors: {
  custom: {
    50: '#7b81d0',
    500: '#2e51ba',
    950: '#000000',
  },
}
SCSS
$custom: #2e51ba;
$custom-light: #7b81d0;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51ba",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 186
  },
  "hsl": {
    "h": 225,
    "s": 60.345,
    "l": 45.49
  },
  "oklch": {
    "l": 0.47351,
    "c": 0.17067,
    "h": 266
  },
  "luminance": 0.10011
}

Semantic roles & 50–950 ramp

primary
#2E51BA
secondary
#C9B67B
accent
#BC44E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E51BA

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

Preview Lab → · Contrast checker → · Palette generator →

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