#2E51B4#2E51B4

#2E51B4 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 46.9% C 0.163 H 265.7°. Best body text is #FFFFFF at 7.11:1 contrast (WCAG AA passes).

Color values

HEX#2E51B4
RGBrgb(46, 81, 180)
HSLhsl(224, 59%, 44%)
HSVhsv(224, 74%, 71%)
CMYKcmyk(74.4%, 55%, 0%, 29.4%)
CIE-LABlab(37.41, 22.73, -56.24)
CIE-LCHlch(37.41, 60.66, 292.01°)
OKLaboklab(46.87% -0.0123 -0.162)
OKLCHoklch(46.87% 0.163 265.7)
XYZxyz(12.3045, 9.7597, 44.4065)
Luminance0.0976 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51B4 #B4912E
analogous
#2E94B4 #2E51B4 #4E2EB4
triadic
#2E51B4 #B42E51 #51B42E
tetradic
#2E51B4 #B42E94 #B4912E #2EB44E
square
#2E51B4 #B42E94 #B4912E #2EB44E
split-complementary
#2E51B4 #B44E2E #94B42E
monochromatic
#152553 #223B83 #2E51B4 #4E70D2 #7E97DE

Accessibility & contrast

On white

7.11
#2E51B4 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.95
#2E51B4 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51B4
7.11:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51B4#FFFFFF#000000##FFFFFF
##2E51B41.007.112.957.11
#FFFFFF7.111.0021.001.00
#0000002.9521.001.0021.00
##FFFFFF7.111.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005EB7
Deuteranopia (green-blind)
#0052B2
Tritanopia (blue-blind)
#00697A
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e51b4;
/* rgb */ color: rgb(46, 81, 180);
/* oklch */ color: oklch(46.9% 0.163 265.7);
Tailwind
colors: {
  custom: {
    50: '#7a81cb',
    500: '#2e51b4',
    950: '#000000',
  },
}
SCSS
$custom: #2e51b4;
$custom-light: #7a81cb;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51b4",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 180
  },
  "hsl": {
    "h": 224.328,
    "s": 59.292,
    "l": 44.314
  },
  "oklch": {
    "l": 0.46868,
    "c": 0.1625,
    "h": 265.7
  },
  "luminance": 0.09761
}

Semantic roles & 50–950 ramp

primary
#2E51B4
secondary
#C7B277
accent
#B945E2
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0A0A13
muted
#7C7C82

Preview Lab

Preview with #2E51B4

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

Preview Lab → · Contrast checker → · Palette generator →

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