#2E51B6#2E51B6

#2E51B6 is a mid, vivid blue. Relative luminance 0.098; OKLCH L 47.0% C 0.165 H 265.8°. Best body text is #FFFFFF at 7.07:1 contrast (WCAG AA passes).

Color values

HEX#2E51B6
RGBrgb(46, 81, 182)
HSLhsl(225, 60%, 45%)
HSVhsv(225, 75%, 71%)
CMYKcmyk(74.7%, 55.5%, 0%, 28.6%)
CIE-LABlab(37.56, 23.49, -57.17)
CIE-LCHlch(37.56, 61.81, 292.33°)
OKLaboklab(47.03% -0.0121 -0.1648)
OKLCHoklch(47.03% 0.165 265.8)
XYZxyz(12.5097, 9.8417, 45.4873)
Luminance0.0984 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51B6 #B6932E
analogous
#2E95B6 #2E51B6 #4F2EB6
triadic
#2E51B6 #B62E51 #51B62E
tetradic
#2E51B6 #B62E95 #B6932E #2EB64F
square
#2E51B6 #B62E95 #B6932E #2EB64F
split-complementary
#2E51B6 #B64F2E #95B62E
monochromatic
#152654 #223B85 #2E51B6 #4F71D2 #8098DF

Accessibility & contrast

On white

7.07
#2E51B6 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.97
#2E51B6 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51B6
7.07:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51B6#FFFFFF#000000##FFFFFF
##2E51B61.007.072.977.07
#FFFFFF7.071.0021.001.00
#0000002.9721.001.0021.00
##FFFFFF7.071.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FB9
Deuteranopia (green-blind)
#0052B4
Tritanopia (blue-blind)
#006A7B
Achromatopsia (no color)
#585858

Design tokens & code

CSS
--color: #2e51b6;
/* rgb */ color: rgb(46, 81, 182);
/* oklch */ color: oklch(47.0% 0.165 265.8);
Tailwind
colors: {
  custom: {
    50: '#7a81cd',
    500: '#2e51b6',
    950: '#000000',
  },
}
SCSS
$custom: #2e51b6;
$custom-light: #7a81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51b6",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 182
  },
  "hsl": {
    "h": 224.559,
    "s": 59.649,
    "l": 44.706
  },
  "oklch": {
    "l": 0.47028,
    "c": 0.16524,
    "h": 265.8
  },
  "luminance": 0.09843
}

Semantic roles & 50–950 ramp

primary
#2E51B6
secondary
#C8B378
accent
#BA45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A13
muted
#7C7C82

Preview Lab

Preview with #2E51B6

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

Preview Lab → · Contrast checker → · Palette generator →

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