#2E51B7#2E51B7

#2E51B7 is a mid, vivid blue. Relative luminance 0.099; OKLCH L 47.1% C 0.167 H 265.8°. Best body text is #FFFFFF at 7.05:1 contrast (WCAG AA passes).

Color values

HEX#2E51B7
RGBrgb(46, 81, 183)
HSLhsl(225, 60%, 45%)
HSVhsv(225, 75%, 72%)
CMYKcmyk(74.9%, 55.7%, 0%, 28.2%)
CIE-LABlab(37.63, 23.86, -57.64)
CIE-LCHlch(37.63, 62.38, 292.49°)
OKLaboklab(47.11% -0.0121 -0.1662)
OKLCHoklch(47.11% 0.167 265.8)
XYZxyz(12.6134, 9.8832, 46.0335)
Luminance0.0988 (WCAG relative)
Temperaturecool
Familyblue

Closest named colors

Perceptual scales

Shades

Tints

Tones

OKLCH scale

Color harmonies

complementary
#2E51B7 #B7942E
analogous
#2E95B7 #2E51B7 #502EB7
triadic
#2E51B7 #B72E51 #51B72E
tetradic
#2E51B7 #B72E95 #B7942E #2EB750
square
#2E51B7 #B72E95 #B7942E #2EB750
split-complementary
#2E51B7 #B7502E #95B72E
monochromatic
#152655 #223B86 #2E51B7 #4F71D3 #8098DF

Accessibility & contrast

On white

7.05
#2E51B7 on #FFFFFF
AA ✓AA large ✓AAA ✓

On black

2.98
#2E51B7 on #000000
AA ✗AA large ✗AAA ✗

Best text color

#FFFFFF on #2E51B7
7.05:1 — WCAG AA (normal text) passes

Contrast matrix

fg \ bg##2E51B7#FFFFFF#000000##FFFFFF
##2E51B71.007.052.987.05
#FFFFFF7.051.0021.001.00
#0000002.9821.001.0021.00
##FFFFFF7.051.0021.001.00

Color blindness preview

Protanopia (red-blind)
#005FBB
Deuteranopia (green-blind)
#0053B5
Tritanopia (blue-blind)
#006A7C
Achromatopsia (no color)
#595959

Design tokens & code

CSS
--color: #2e51b7;
/* rgb */ color: rgb(46, 81, 183);
/* oklch */ color: oklch(47.1% 0.167 265.8);
Tailwind
colors: {
  custom: {
    50: '#7a81cd',
    500: '#2e51b7',
    950: '#000000',
  },
}
SCSS
$custom: #2e51b7;
$custom-light: #7a81cd;
$custom-dark: #000000;
JSON
{
  "hex": "#2e51b7",
  "rgb": {
    "r": 46,
    "g": 81,
    "b": 183
  },
  "hsl": {
    "h": 224.672,
    "s": 59.825,
    "l": 44.902
  },
  "oklch": {
    "l": 0.47108,
    "c": 0.16661,
    "h": 265.8
  },
  "luminance": 0.09885
}

Semantic roles & 50–950 ramp

primary
#2E51B7
secondary
#C8B479
accent
#BB45E3
background
#F8F7FC
surface
#EFEEF9
border
#CAC9D2
text
#0B0A14
muted
#7C7C82

Preview Lab

Preview with #2E51B7

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

Preview Lab → · Contrast checker → · Palette generator →

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